Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Prime-counting function</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Prime-counting_function"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.math.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Prime-counting_function rootpage-Prime-counting_function skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Prime-counting function</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}


/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">"Π(x)" redirects here. For the variant of the gamma function, see <a href="Gamma_function#Pi_function" title="Gamma function">Gamma function §&nbsp;Pi function</a>.</div>
<style data-mw-deduplicate="TemplateStyles:r1290876196">
/* start https://en.wikipedia.org/ */


.mw-parser-output .side-box{margin:4px 0;box-sizing:border-box;border:1px solid #aaa;font-size:88%;line-height:1.25em;background-color:var(--background-color-interactive-subtle,#f8f9fa);display:flow-root}.mw-parser-output .infobox .side-box{font-size:100%}.mw-parser-output .side-box-abovebelow,.mw-parser-output .side-box-text{padding:0.25em 0.9em}.mw-parser-output .side-box-image{padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .side-box-imageright{padding:2px 0.9em 2px 0;text-align:center}@media(min-width:500px){.mw-parser-output .side-box-flex{display:flex;align-items:center}.mw-parser-output .side-box-text{flex:1;min-width:0}}@media(min-width:720px){.mw-parser-output .side-box{width:238px}.mw-parser-output .side-box-right{clear:right;float:right;margin-left:1em}.mw-parser-output .side-box-left{margin-right:1em}}


/* end https://en.wikipedia.org/ */
</style>
<style data-mw-deduplicate="TemplateStyles:r1251242444">
/* start https://en.wikipedia.org/ */


.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}


/* end https://en.wikipedia.org/ */
</style>

<p>In <a href="Mathematics" title="Mathematics">mathematics</a>, the <b>prime-counting function</b> is the <a href="Function_(mathematics)" title="Function (mathematics)">function</a> counting the number of <a href="Prime_number" title="Prime number">prime numbers</a> less than or equal to some <a href="Real_number" title="Real number">real number</a> <span class="texhtml mvar" style="font-style:italic;">x</span>.<sup id="cite_ref-Bach_1-0" class="reference"><a href="#cite_note-Bach-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-mathworld_pcf_2-0" class="reference"><a href="#cite_note-mathworld_pcf-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> It is denoted by <span class="texhtml"><i>π</i>(<i>x</i>)</span> (unrelated to the <a href="Pi" title="Pi">number <span class="texhtml mvar" style="font-style:italic;">π</span></a>).
</p><p>A symmetric variant seen sometimes is <span class="texhtml"><i>π</i><sub>0</sub>(<i>x</i>)</span>, which is equal to <span class="texhtml"><i>π</i>(<i>x</i>) − <style data-mw-deduplicate="TemplateStyles:r1154941027">
/* start https://en.wikipedia.org/ */


.mw-parser-output .frac{white-space:nowrap}.mw-parser-output .frac .num,.mw-parser-output .frac .den{font-size:80%;line-height:0;vertical-align:super}.mw-parser-output .frac .den{vertical-align:sub}.mw-parser-output .sr-only{border:0;clip:rect(0,0,0,0);clip-path:polygon(0px 0px,0px 0px,0px 0px);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}


/* end https://en.wikipedia.org/ */
</style><span class="frac"><span class="num">1</span>⁄<span class="den">2</span></span></span> if <span class="texhtml mvar" style="font-style:italic;">x</span> is exactly a prime number, and equal to <span class="texhtml"><i>π</i>(<i>x</i>)</span> otherwise. That is, the number of prime numbers less than <span class="texhtml mvar" style="font-style:italic;">x</span>, plus half if <span class="texhtml mvar" style="font-style:italic;">x</span> equals a prime.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Growth_rate">Growth rate</h2></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Prime_number_theorem" title="Prime number theorem">Prime number theorem</a></div>
<p>Of great interest in <a href="Number_theory" title="Number theory">number theory</a> is the <a href="Asymptotic_analysis" title="Asymptotic analysis">growth rate</a> of the prime-counting function.<sup id="cite_ref-Caldwell_3-0" class="reference"><a href="#cite_note-Caldwell-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Dickson_4-0" class="reference"><a href="#cite_note-Dickson-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> It was <a href="Conjecture" title="Conjecture">conjectured</a> in the end of the 18th century by <a href="Carl_Friedrich_Gauss" title="Carl Friedrich Gauss">Gauss</a> and by <a href="Adrien-Marie_Legendre" title="Adrien-Marie Legendre">Legendre</a> to be approximately
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\frac {x}{\log x}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\frac {x}{\log x}}}</annotation>
</semantics>
</math></span></span>
where <span class="texhtml">log</span> is the <a href="Natural_logarithm" title="Natural logarithm">natural logarithm</a>, in the sense that
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lim _{x\rightarrow \infty }{\frac {\pi (x)}{x/\log x}}=1.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<munder>
<mo movablelimits="true" form="prefix">lim</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>x</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munder>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
</mrow>
<mrow>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mo>=</mo>
<mn>1.</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lim _{x\rightarrow \infty }{\frac {\pi (x)}{x/\log x}}=1.}</annotation>
</semantics>
</math></span></span>
This statement is the <a href="Prime_number_theorem" title="Prime number theorem">prime number theorem</a>. An equivalent statement is
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lim _{x\rightarrow \infty }{\frac {\pi (x)}{\operatorname {li} (x)}}=1}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<munder>
<mo movablelimits="true" form="prefix">lim</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>x</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munder>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
</mrow>
<mrow>
<mi>li</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
</mrow>
</mfrac>
</mrow>
<mo>=</mo>
<mn>1</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lim _{x\rightarrow \infty }{\frac {\pi (x)}{\operatorname {li} (x)}}=1}</annotation>
</semantics>
</math></span></span>
where <span class="texhtml">li</span> is the <a href="Logarithmic_integral" class="mw-redirect" title="Logarithmic integral">logarithmic integral</a> function. The prime number theorem was first proved in 1896 by <a href="Jacques_Hadamard" title="Jacques Hadamard">Jacques Hadamard</a> and by <a href="Charles_Jean_de_la_Vall%C3%A9e-Poussin" class="mw-redirect" title="Charles Jean de la Vallée-Poussin">Charles de la Vallée Poussin</a> independently, using properties of the <a href="Riemann_zeta_function" title="Riemann zeta function">Riemann zeta function</a> introduced by <a href="Bernhard_Riemann" title="Bernhard Riemann">Riemann</a> in 1859. Proofs of the prime number theorem not using the zeta function or <a href="Complex_analysis" title="Complex analysis">complex analysis</a> were found around 1948 by <a href="Atle_Selberg" title="Atle Selberg">Atle Selberg</a> and by <a href="Paul_Erd%C5%91s" title="Paul Erdős">Paul Erdős</a> (for the most part independently).<sup id="cite_ref-Ireland_5-0" class="reference"><a href="#cite_note-Ireland-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="More_precise_estimates">More precise estimates</h3></div>
<p>In 1899, <a href="Charles_Jean_de_la_Vall%C3%A9e_Poussin" title="Charles Jean de la Vallée Poussin">de la Vallée Poussin</a> proved that
<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi (x)=\operatorname {li} (x)+O\left(xe^{-a{\sqrt {\log x}}}\right)\quad {\text{as }}x\to \infty }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>li</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mi>O</mi>
<mrow>
<mo>(</mo>
<mrow>
<mi>x</mi>
<msup>
<mi>e</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<msqrt>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</msqrt>
</mrow>
</mrow>
</msup>
</mrow>
<mo>)</mo>
</mrow>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext>as&nbsp;</mtext>
</mrow>
<mi>x</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi (x)=\operatorname {li} (x)+O\left(xe^{-a{\sqrt {\log x}}}\right)\quad {\text{as }}x\to \infty }</annotation>
</semantics>
</math></span></span>
for some positive constant <span class="texhtml mvar" style="font-style:italic;">a</span>. Here, <span class="texhtml"><i>O</i>(...)</span> is the <a href="Big_O_notation" title="Big O notation">big <span class="texhtml mvar" style="font-style:italic;">O</span> notation</a>.
</p><p>More precise estimates of <span class="texhtml"><i>π</i>(<i>x</i>)</span> are now known. For example, in 2002, <a href="Kevin_Ford_(mathematician)" title="Kevin Ford (mathematician)">Kevin Ford</a> proved that<sup id="cite_ref-Ford_7-0" class="reference"><a href="#cite_note-Ford-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi (x)=\operatorname {li} (x)+O\left(x\exp \left(-0.2098(\log x)^{3/5}(\log \log x)^{-1/5}\right)\right).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>li</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mi>O</mi>
<mrow>
<mo>(</mo>
<mrow>
<mi>x</mi>
<mi>exp</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<mrow>
<mo>−<!-- − --></mo>
<mn>0.2098</mn>
<mo stretchy="false">(</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>3</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mn>5</mn>
</mrow>
</msup>
<mo stretchy="false">(</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mn>5</mn>
</mrow>
</msup>
</mrow>
<mo>)</mo>
</mrow>
</mrow>
<mo>)</mo>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi (x)=\operatorname {li} (x)+O\left(x\exp \left(-0.2098(\log x)^{3/5}(\log \log x)^{-1/5}\right)\right).}</annotation>
</semantics>
</math></span></span>
</p><p>Mossinghoff and <a href="Timothy_Trudgian" title="Timothy Trudgian">Trudgian</a> proved<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> an explicit upper bound for the difference between <span class="texhtml"><i>π</i>(<i>x</i>)</span> and <span class="texhtml">li(<i>x</i>)</span>:
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\bigl |}\pi (x)-\operatorname {li} (x){\bigr |}\leq 0.2593{\frac {x}{(\log x)^{3/4}}}\exp \left(-{\sqrt {\frac {\log x}{6.315}}}\right)\quad {\text{for }}x\geq 229.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mrow class="MJX-TeXAtom-OPEN">
<mo maxsize="1.2em" minsize="1.2em">|</mo>
</mrow>
</mrow>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>−<!-- − --></mo>
<mi>li</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mrow class="MJX-TeXAtom-CLOSE">
<mo maxsize="1.2em" minsize="1.2em">|</mo>
</mrow>
</mrow>
<mo>≤<!-- ≤ --></mo>
<mn>0.2593</mn>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mrow>
<mo stretchy="false">(</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>3</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mn>4</mn>
</mrow>
</msup>
</mrow>
</mfrac>
</mrow>
<mi>exp</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<mrow>
<mo>−<!-- − --></mo>
<mrow class="MJX-TeXAtom-ORD">
<msqrt>
<mfrac>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
<mn>6.315</mn>
</mfrac>
</msqrt>
</mrow>
</mrow>
<mo>)</mo>
</mrow>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext>for&nbsp;</mtext>
</mrow>
<mi>x</mi>
<mo>≥<!-- ≥ --></mo>
<mn>229.</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\bigl |}\pi (x)-\operatorname {li} (x){\bigr |}\leq 0.2593{\frac {x}{(\log x)^{3/4}}}\exp \left(-{\sqrt {\frac {\log x}{6.315}}}\right)\quad {\text{for }}x\geq 229.}</annotation>
</semantics>
</math></span></span>
</p><p>For values of <span class="texhtml mvar" style="font-style:italic;">x</span> that are not unreasonably large, <span class="texhtml">li(<i>x</i>)</span> is greater than <span class="texhtml"><i>π</i>(<i>x</i>)</span>. However, <span class="texhtml"><i>π</i>(<i>x</i>) − li(<i>x</i>)</span> is known to change sign infinitely many times. For a discussion of this, see <a href="Skewes'_number" class="mw-redirect" title="Skewes' number">Skewes' number</a>.
</p>
<div class="mw-heading mw-heading3"><h3 id="Exact_form">Exact form</h3></div><p>
For <span class="texhtml"><i>x</i> &gt; 1</span> let <span class="texhtml"><i>π</i><sub>0</sub>(<i>x</i>) = <i>π</i>(<i>x</i>) − <style data-mw-deduplicate="TemplateStyles:r1214402035">
/* start https://en.wikipedia.org/ */


.mw-parser-output .sfrac{white-space:nowrap}.mw-parser-output .sfrac.tion,.mw-parser-output .sfrac .tion{display:inline-block;vertical-align:-0.5em;font-size:85%;text-align:center}.mw-parser-output .sfrac .num{display:block;line-height:1em;margin:0.0em 0.1em;border-bottom:1px solid}.mw-parser-output .sfrac .den{display:block;line-height:1em;margin:0.1em 0.1em}.mw-parser-output .sr-only{border:0;clip:rect(0,0,0,0);clip-path:polygon(0px 0px,0px 0px,0px 0px);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}


/* end https://en.wikipedia.org/ */
</style><span class="sfrac">⁠<span class="tion"><span class="num">1</span><span class="sr-only">/</span><span class="den">2</span></span>⁠</span></span> when <span class="texhtml mvar" style="font-style:italic;">x</span> is a prime number, and <span class="texhtml"><i>π</i><sub>0</sub>(<i>x</i>) = <i>π</i>(<i>x</i>)</span> otherwise. <a href="Bernhard_Riemann" title="Bernhard Riemann">Bernhard Riemann</a>, in his work <i><a href="On_the_Number_of_Primes_Less_Than_a_Given_Magnitude" title="On the Number of Primes Less Than a Given Magnitude">On the Number of Primes Less Than a Given Magnitude</a></i>, proved that <span class="texhtml"><i>π</i><sub>0</sub>(<i>x</i>)</span> is equal to<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup></p>
<p><span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi _{0}(x)=\operatorname {R} (x)-\sum _{\rho }\operatorname {R} (x^{\rho }),}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>π<!-- π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>−<!-- − --></mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>ρ<!-- ρ --></mi>
</mrow>
</munder>
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>ρ<!-- ρ --></mi>
</mrow>
</msup>
<mo stretchy="false">)</mo>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi _{0}(x)=\operatorname {R} (x)-\sum _{\rho }\operatorname {R} (x^{\rho }),}</annotation>
</semantics>
</math></span></span>
where
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \operatorname {R} (x)=\sum _{n=1}^{\infty }{\frac {\mu (n)}{n}}\operatorname {li} \left(x^{1/n}\right),}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<munderover>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munderover>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>μ<!-- μ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
<mi>n</mi>
</mfrac>
</mrow>
<mi>li</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mi>n</mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \operatorname {R} (x)=\sum _{n=1}^{\infty }{\frac {\mu (n)}{n}}\operatorname {li} \left(x^{1/n}\right),}</annotation>
</semantics>
</math></span></span>
<span class="texhtml"><i>μ</i>(<i>n</i>)</span> is the <a href="M%C3%B6bius_function" title="Möbius function">Möbius function</a>, <span class="texhtml">li(<i>x</i>)</span> is the <a href="Logarithmic_integral_function" title="Logarithmic integral function">logarithmic integral function</a>, <span class="texhtml mvar" style="font-style:italic;">ρ</span> indexes every zero of the Riemann zeta function, and <span class="texhtml">li(<i>x</i><sup><span class="sfrac">⁠<span class="tion"><span class="num"><i>ρ</i></span><span class="sr-only">/</span><span class="den"><i>n</i></span></span>⁠</span></sup>)</span> is not evaluated with a <a href="Branch_cut" class="mw-redirect" title="Branch cut">branch cut</a> but instead considered as <span class="texhtml">Ei(<span class="sfrac">⁠<span class="tion"><span class="num"><i>ρ</i></span><span class="sr-only">/</span><span class="den"><i>n</i></span></span>⁠</span> log <i>x</i>)</span> where <span class="texhtml">Ei(<i>x</i>)</span> is the <a href="Exponential_integral" title="Exponential integral">exponential integral</a>. If the trivial zeros are collected and the sum is taken <i>only</i> over the non-trivial zeros <span class="texhtml mvar" style="font-style:italic;">ρ</span> of the Riemann zeta function, then <span class="texhtml"><i>π</i><sub>0</sub>(<i>x</i>)</span> may be approximated by<sup id="cite_ref-RieselGohl_10-0" class="reference"><a href="#cite_note-RieselGohl-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi _{0}(x)\approx \operatorname {R} (x)-\sum _{\rho }\operatorname {R} \left(x^{\rho }\right)-{\frac {1}{\log x}}+{\frac {1}{\pi }}\arctan {\frac {\pi }{\log x}}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>π<!-- π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>≈<!-- ≈ --></mo>
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>−<!-- − --></mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>ρ<!-- ρ --></mi>
</mrow>
</munder>
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>ρ<!-- ρ --></mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mo>−<!-- − --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mi>π<!-- π --></mi>
</mfrac>
</mrow>
<mi>arctan</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>π<!-- π --></mi>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi _{0}(x)\approx \operatorname {R} (x)-\sum _{\rho }\operatorname {R} \left(x^{\rho }\right)-{\frac {1}{\log x}}+{\frac {1}{\pi }}\arctan {\frac {\pi }{\log x}}.}</annotation>
</semantics>
</math></span></span>
</p><p>The <a href="Riemann_hypothesis" title="Riemann hypothesis">Riemann hypothesis</a> suggests that every such non-trivial zero lies along <span class="texhtml">Re(<i>s</i>) = <span class="sfrac">⁠<span class="tion"><span class="num">1</span><span class="sr-only">/</span><span class="den">2</span></span>⁠</span></span>.
</p>
<div class="mw-heading mw-heading2"><h2 id="Table_of_π(x),_⁠x/log_x_⁠,_and_li(x)">Table of <span class="texhtml"><i>π</i>(<i>x</i>)</span>, <span class="texhtml"><span class="sfrac">⁠<span class="tion"><span class="num"><i>x</i></span><span class="sr-only">/</span><span class="den">log <i>x</i> </span></span>⁠</span></span>, and <span class="texhtml">li(<i>x</i>)</span></h2></div>
<p>The table shows how the three functions <span class="texhtml"><i>π</i>(<i>x</i>)</span>, <span class="texhtml"><span class="sfrac">⁠<span class="tion"><span class="num"><i>x</i></span><span class="sr-only">/</span><span class="den">log <i>x</i></span></span>⁠</span></span>, and <span class="texhtml">li(<i>x</i>)</span> compared at powers of 10. See also,<sup id="cite_ref-Caldwell_3-1" class="reference"><a href="#cite_note-Caldwell-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Silva_11-0" class="reference"><a href="#cite_note-Silva-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> and<sup id="cite_ref-Gourdon_12-0" class="reference"><a href="#cite_note-Gourdon-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><table class="wikitable" style="text-align: right">
<tbody><tr>
<th><span class="texhtml mvar" style="font-style:italic;">x</span>
</th>
<th><span class="texhtml"><i>π</i>(<i>x</i>)</span>
</th>
<th><span class="texhtml"><i>π</i>(<i>x</i>) − <span class="sfrac">⁠<span class="tion"><span class="num"><i>x</i></span><span class="sr-only">/</span><span class="den">log <i>x</i></span></span>⁠</span></span>
</th>
<th><span class="texhtml">li(<i>x</i>) − <i>π</i>(<i>x</i>)</span>
</th>
<th><span class="texhtml"><span class="sfrac">⁠<span class="tion"><span class="num"><i>x</i></span><span class="sr-only">/</span><span class="den"><i>π</i>(<i>x</i>)</span></span>⁠</span></span>
</th>
<th><span class="texhtml"><span class="sfrac">⁠<span class="tion"><span class="num"><i>x</i></span><span class="sr-only">/</span><span class="den">log <i>x</i></span></span>⁠</span></span><br>&nbsp;% error
</th></tr>
<tr>
<td>10
</td>
<td>4
</td>
<td>0
</td>
<td>2
</td>
<td>2.500
</td>
<td>−8.57%
</td></tr>
<tr>
<td>10<sup>2</sup>
</td>
<td>25
</td>
<td>3
</td>
<td>5
</td>
<td>4.000
</td>
<td>+13.14%
</td></tr>
<tr>
<td>10<sup>3</sup>
</td>
<td>168
</td>
<td>23
</td>
<td>10
</td>
<td>5.952
</td>
<td>+13.83%
</td></tr>
<tr>
<td>10<sup>4</sup>
</td>
<td>1,229
</td>
<td>143
</td>
<td>17
</td>
<td>8.137
</td>
<td>+11.66%
</td></tr>
<tr>
<td>10<sup>5</sup>
</td>
<td>9,592
</td>
<td>906
</td>
<td>38
</td>
<td>10.425
</td>
<td>+9.45%
</td></tr>
<tr>
<td>10<sup>6</sup>
</td>
<td>78,498
</td>
<td>6,116
</td>
<td>130
</td>
<td>12.739
</td>
<td>+7.79%
</td></tr>
<tr>
<td>10<sup>7</sup>
</td>
<td>664,579
</td>
<td>44,158
</td>
<td>339
</td>
<td>15.047
</td>
<td>+6.64%
</td></tr>
<tr>
<td>10<sup>8</sup>
</td>
<td>5,761,455
</td>
<td>332,774
</td>
<td>754
</td>
<td>17.357
</td>
<td>+5.78%
</td></tr>
<tr>
<td>10<sup>9</sup>
</td>
<td>50,847,534
</td>
<td>2,592,592
</td>
<td>1,701
</td>
<td>19.667
</td>
<td>+5.10%
</td></tr>
<tr>
<td>10<sup>10</sup>
</td>
<td>455,052,511
</td>
<td>20,758,029
</td>
<td>3,104
</td>
<td>21.975
</td>
<td>+4.56%
</td></tr>
<tr>
<td>10<sup>11</sup>
</td>
<td>4,118,054,813
</td>
<td>169,923,159
</td>
<td>11,588
</td>
<td>24.283
</td>
<td>+4.13%
</td></tr>
<tr>
<td>10<sup>12</sup>
</td>
<td>37,607,912,018
</td>
<td>1,416,705,193
</td>
<td>38,263
</td>
<td>26.590
</td>
<td>+3.77%
</td></tr>
<tr>
<td>10<sup>13</sup>
</td>
<td>346,065,536,839
</td>
<td>11,992,858,452
</td>
<td>108,971
</td>
<td>28.896
</td>
<td>+3.47%
</td></tr>
<tr>
<td>10<sup>14</sup>
</td>
<td>3,204,941,750,802
</td>
<td>102,838,308,636
</td>
<td>314,890
</td>
<td>31.202
</td>
<td>+3.21%
</td></tr>
<tr>
<td>10<sup>15</sup>
</td>
<td>29,844,570,422,669
</td>
<td>891,604,962,452
</td>
<td>1,052,619
</td>
<td>33.507
</td>
<td>+2.99%
</td></tr>
<tr>
<td>10<sup>16</sup>
</td>
<td>279,238,341,033,925
</td>
<td>7,804,289,844,393
</td>
<td>3,214,632
</td>
<td>35.812
</td>
<td>+2.79%
</td></tr>
<tr>
<td>10<sup>17</sup>
</td>
<td>2,623,557,157,654,233
</td>
<td>68,883,734,693,928
</td>
<td>7,956,589
</td>
<td>38.116
</td>
<td>+2.63%
</td></tr>
<tr>
<td>10<sup>18</sup>
</td>
<td>24,739,954,287,740,860
</td>
<td>612,483,070,893,536
</td>
<td>21,949,555
</td>
<td>40.420
</td>
<td>+2.48%
</td></tr>
<tr>
<td>10<sup>19</sup>
</td>
<td>234,057,667,276,344,607
</td>
<td>5,481,624,169,369,961
</td>
<td>99,877,775
</td>
<td>42.725
</td>
<td>+2.34%
</td></tr>
<tr>
<td>10<sup>20</sup>
</td>
<td>2,220,819,602,560,918,840
</td>
<td>49,347,193,044,659,702
</td>
<td>222,744,644
</td>
<td>45.028
</td>
<td>+2.22%
</td></tr>
<tr>
<td>10<sup>21</sup>
</td>
<td>21,127,269,486,018,731,928
</td>
<td>446,579,871,578,168,707
</td>
<td>597,394,254
</td>
<td>47.332
</td>
<td>+2.11%
</td></tr>
<tr>
<td>10<sup>22</sup>
</td>
<td>201,467,286,689,315,906,290
</td>
<td>4,060,704,006,019,620,994
</td>
<td>1,932,355,208
</td>
<td>49.636
</td>
<td>+2.02%
</td></tr>
<tr>
<td>10<sup>23</sup>
</td>
<td>1,925,320,391,606,803,968,923
</td>
<td>37,083,513,766,578,631,309
</td>
<td>7,250,186,216
</td>
<td>51.939
</td>
<td>+1.93%
</td></tr>
<tr>
<td>10<sup>24</sup>
</td>
<td>18,435,599,767,349,200,867,866
</td>
<td>339,996,354,713,708,049,069
</td>
<td>17,146,907,278
</td>
<td>54.243
</td>
<td>+1.84%
</td></tr>
<tr>
<td>10<sup>25</sup>
</td>
<td>176,846,309,399,143,769,411,680
</td>
<td>3,128,516,637,843,038,351,228
</td>
<td>55,160,980,939
</td>
<td>56.546
</td>
<td>+1.77%
</td></tr>
<tr>
<td>10<sup>26</sup>
</td>
<td>1,699,246,750,872,437,141,327,603
</td>
<td>28,883,358,936,853,188,823,261
</td>
<td>155,891,678,121
</td>
<td>58.850
</td>
<td>+1.70%
</td></tr>
<tr>
<td>10<sup>27</sup>
</td>
<td>16,352,460,426,841,680,446,427,399
</td>
<td>267,479,615,610,131,274,163,365
</td>
<td>508,666,658,006
</td>
<td>61.153
</td>
<td>+1.64%
</td></tr>
<tr>
<td>10<sup>28</sup>
</td>
<td>157,589,269,275,973,410,412,739,598
</td>
<td>2,484,097,167,669,186,251,622,127
</td>
<td>1,427,745,660,374
</td>
<td>63.456
</td>
<td>+1.58%
</td></tr>
<tr>
<td>10<sup>29</sup>
</td>
<td>1,520,698,109,714,272,166,094,258,063
</td>
<td>23,130,930,737,541,725,917,951,446
</td>
<td>4,551,193,622,464
</td>
<td>65.759
</td>
<td>+1.52%
</td></tr></tbody></table></dd></dl>

<p>In the <a href="On-Line_Encyclopedia_of_Integer_Sequences" title="On-Line Encyclopedia of Integer Sequences">On-Line Encyclopedia of Integer Sequences</a>, the <span class="texhtml"><i>π</i>(<i>x</i>)</span> column is sequence <span class="nowrap external"><a href="On-Line_Encyclopedia_of_Integer_Sequences" title="On-Line Encyclopedia of Integer Sequences">OEIS</a>:&nbsp;<a href="https://oeis.org/A006880" class="extiw external" title="oeis:A006880">A006880</a></span>, <span class="texhtml"> <i>π</i>(<i>x</i>) − <span class="sfrac">⁠<span class="tion"><span class="num"><i>x</i></span><span class="sr-only">/</span><span class="den">log <i>x</i></span></span>⁠</span></span> is sequence <span class="nowrap external"><a href="On-Line_Encyclopedia_of_Integer_Sequences" title="On-Line Encyclopedia of Integer Sequences">OEIS</a>:&nbsp;<a href="https://oeis.org/A057835" class="extiw external" title="oeis:A057835">A057835</a></span>, and <span class="texhtml">li(<i>x</i>) − <i>π</i>(<i>x</i>)</span> is sequence <span class="nowrap external"><a href="On-Line_Encyclopedia_of_Integer_Sequences" title="On-Line Encyclopedia of Integer Sequences">OEIS</a>:&nbsp;<a href="https://oeis.org/A057752" class="extiw external" title="oeis:A057752">A057752</a></span>.
</p><p>The value for <span class="texhtml"><i>π</i>(10<sup>24</sup>)</span> was originally computed by J. Buethe, <a href="Jens_Franke" title="Jens Franke">J. Franke</a>, A. Jost, and T. Kleinjung assuming the <a href="Riemann_hypothesis" title="Riemann hypothesis">Riemann hypothesis</a>.<sup id="cite_ref-Franke_13-0" class="reference"><a href="#cite_note-Franke-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup>
It was later verified unconditionally in a computation by D. J. Platt.<sup id="cite_ref-Platt2012_14-0" class="reference"><a href="#cite_note-Platt2012-14"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup>
The value for <span class="texhtml"><i>π</i>(10<sup>25</sup>)</span> is by the same four authors.<sup id="cite_ref-Buethe_15-0" class="reference"><a href="#cite_note-Buethe-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup>
The value for <span class="texhtml"><i>π</i>(10<sup>26</sup>)</span> was computed by D. B. Staple.<sup id="cite_ref-Staple_16-0" class="reference"><a href="#cite_note-Staple-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup> All other prior entries in this table were also verified as part of that work.
</p><p>The values for 10<sup>27</sup>, 10<sup>28</sup>, and 10<sup>29</sup> were announced by David Baugh and Kim Walisch in 2015,<sup id="cite_ref-17" class="reference"><a href="#cite_note-17"><span class="cite-bracket">[</span>17<span class="cite-bracket">]</span></a></sup> 2020,<sup id="cite_ref-18" class="reference"><a href="#cite_note-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup> and 2022,<sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup> respectively.
</p>
<div class="mw-heading mw-heading2"><h2 id="Algorithms_for_evaluating_π(x)">Algorithms for evaluating <span class="texhtml"><i>π</i>(<i>x</i>)</span></h2></div>
<p>A simple way to find <span class="texhtml"><i>π</i>(<i>x</i>)</span>, if <span class="texhtml mvar" style="font-style:italic;">x</span> is not too large, is to use the <a href="Sieve_of_Eratosthenes" title="Sieve of Eratosthenes">sieve of Eratosthenes</a> to produce the primes less than or equal to <span class="texhtml mvar" style="font-style:italic;">x</span> and then to count them.
</p><p>A more elaborate way of finding <span class="texhtml"><i>π</i>(<i>x</i>)</span> is due to <a href="Adrien-Marie_Legendre" title="Adrien-Marie Legendre">Legendre</a> (using the <a href="Inclusion%E2%80%93exclusion_principle" title="Inclusion–exclusion principle">inclusion–exclusion principle</a>): given <span class="texhtml mvar" style="font-style:italic;">x</span>, if <span class="texhtml"><i>p</i><sub>1</sub>, <i>p</i><sub>2</sub>,…, <i>p<sub>n</sub></i></span> are distinct prime numbers, then the number of integers less than or equal to <span class="texhtml mvar" style="font-style:italic;">x</span> which are divisible by no <span class="texhtml mvar" style="font-style:italic;">p<sub>i</sub></span> is
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lfloor x\rfloor -\sum _{i}\left\lfloor {\frac {x}{p_{i}}}\right\rfloor +\sum _{i<j}\left\lfloor {\frac {x}{p_{i}p_{j}}}\right\rfloor -\sum _{i<j<k}\left\lfloor {\frac {x}{p_{i}p_{j}p_{k}}}\right\rfloor +\cdots }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo fence="false" stretchy="false">⌊<!-- ⌊ --></mo>
<mi>x</mi>
<mo fence="false" stretchy="false">⌋<!-- ⌋ --></mo>
<mo>−<!-- − --></mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</munder>
<mrow>
<mo>⌊</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msub>
</mfrac>
</mrow>
<mo>⌋</mo>
</mrow>
<mo>+</mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mo>&lt;</mo>
<mi>j</mi>
</mrow>
</munder>
<mrow>
<mo>⌊</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mrow>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msub>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
</mrow>
</msub>
</mrow>
</mfrac>
</mrow>
<mo>⌋</mo>
</mrow>
<mo>−<!-- − --></mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mo>&lt;</mo>
<mi>j</mi>
<mo>&lt;</mo>
<mi>k</mi>
</mrow>
</munder>
<mrow>
<mo>⌊</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mrow>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msub>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
</mrow>
</msub>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
</mrow>
</mfrac>
</mrow>
<mo>⌋</mo>
</mrow>
<mo>+</mo>
<mo>⋯<!-- ⋯ --></mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lfloor x\rfloor -\sum _{i}\left\lfloor {\frac {x}{p_{i}}}\right\rfloor +\sum _{i&lt;j}\left\lfloor {\frac {x}{p_{i}p_{j}}}\right\rfloor -\sum _{i&lt;j&lt;k}\left\lfloor {\frac {x}{p_{i}p_{j}p_{k}}}\right\rfloor +\cdots }</annotation>
</semantics>
</math></span><img src="./28855ea8083ed7bc59b216a71227c3d9c8b26cdb.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.338ex; width:52.972ex; height:7.009ex;" alt="{\displaystyle \lfloor x\rfloor -\sum _{i}\left\lfloor {\frac {x}{p_{i}}}\right\rfloor +\sum _{i<j}\left\lfloor {\frac {x}{p_{i}p_{j}}}\right\rfloor -\sum _{i<j<k}\left\lfloor {\frac {x}{p_{i}p_{j}p_{k}}}\right\rfloor +\cdots }" loading="lazy"></span></dd></dl>
<p>(where <span class="texhtml">⌊<i>x</i>⌋</span> denotes the <a href="Floor_function" class="mw-redirect" title="Floor function">floor function</a>). This number is therefore equal to
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi (x)-\pi \left({\sqrt {x}}\right)+1}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>−<!-- − --></mo>
<mi>π<!-- π --></mi>
<mrow>
<mo>(</mo>
<mrow class="MJX-TeXAtom-ORD">
<msqrt>
<mi>x</mi>
</msqrt>
</mrow>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mn>1</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi (x)-\pi \left({\sqrt {x}}\right)+1}</annotation>
</semantics>
</math></span><img src="./35658691efbc18be1b334587dd526341b1f7171b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.005ex; width:18.108ex; height:3.009ex;" alt="{\displaystyle \pi (x)-\pi \left({\sqrt {x}}\right)+1}" loading="lazy"></span></dd></dl>
<p>when the numbers <span class="texhtml"><i>p</i><sub>1</sub>, <i>p</i><sub>2</sub>,…, <i>p<sub>n</sub></i></span> are the prime numbers less than or equal to the <a href="Square_root" title="Square root">square root</a> of <span class="texhtml mvar" style="font-style:italic;">x</span>.
</p>
<div class="mw-heading mw-heading3"><h3 id="The_Meissel–Lehmer_algorithm">The Meissel–Lehmer algorithm</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Meissel%E2%80%93Lehmer_algorithm" title="Meissel–Lehmer algorithm">Meissel–Lehmer algorithm</a></div>
<p>In a series of articles published between 1870 and 1885, <a href="Ernst_Meissel" title="Ernst Meissel">Ernst Meissel</a> described (and used) a practical combinatorial way of evaluating <span class="texhtml"><i>π</i>(<i>x</i>)</span>: Let <span class="texhtml"><i>p</i><sub>1</sub>, <i>p</i><sub>2</sub>,…, <i>p<sub>n</sub></i></span> be the first <span class="texhtml mvar" style="font-style:italic;">n</span> primes and denote by <span class="texhtml">Φ(<i>m</i>,<i>n</i>)</span> the number of natural numbers not greater than <span class="texhtml mvar" style="font-style:italic;">m</span> which are divisible by none of the <span class="texhtml mvar" style="font-style:italic;">p<sub>i</sub></span> for any <span class="texhtml"><i>i</i> ≤ <i>n</i></span>. Then
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \Phi (m,n)=\Phi (m,n-1)-\Phi \left({\frac {m}{p_{n}}},n-1\right).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi mathvariant="normal">Φ<!-- Φ --></mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo>,</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi mathvariant="normal">Φ<!-- Φ --></mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo>,</mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mo>−<!-- − --></mo>
<mi mathvariant="normal">Φ<!-- Φ --></mi>
<mrow>
<mo>(</mo>
<mrow>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>m</mi>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
</mfrac>
</mrow>
<mo>,</mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
<mo>)</mo>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \Phi (m,n)=\Phi (m,n-1)-\Phi \left({\frac {m}{p_{n}}},n-1\right).}</annotation>
</semantics>
</math></span><img src="./463121ee021bdd520b7cc2f948ced7429df5af01.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.505ex; width:42.03ex; height:6.176ex;" alt="{\displaystyle \Phi (m,n)=\Phi (m,n-1)-\Phi \left({\frac {m}{p_{n}}},n-1\right).}" loading="lazy"></span></dd></dl>
<p>Given a natural number <span class="texhtml mvar" style="font-style:italic;">m</span>, if <span class="texhtml"><i>n</i> = <i>π</i>(<span class="nowrap"><sup style="margin-right: -0.5em; vertical-align: 0.8em;">3</sup>√<span style="border-top:1px solid; padding:0 0.1em;"><i>m</i></span></span>)</span> and if <span class="texhtml"><i>μ</i> = <i>π</i>(<span class="nowrap">√<span style="border-top:1px solid; padding:0 0.1em;"><i>m</i></span></span>) − <i>n</i></span>, then
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi (m)=\Phi (m,n)+n(\mu +1)+{\frac {\mu ^{2}-\mu }{2}}-1-\sum _{k=1}^{\mu }\pi \left({\frac {m}{p_{n+k}}}\right).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi mathvariant="normal">Φ<!-- Φ --></mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo>,</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mi>n</mi>
<mo stretchy="false">(</mo>
<mi>μ<!-- μ --></mi>
<mo>+</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<msup>
<mi>μ<!-- μ --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<mi>μ<!-- μ --></mi>
</mrow>
<mn>2</mn>
</mfrac>
</mrow>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo>−<!-- − --></mo>
<munderover>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi>μ<!-- μ --></mi>
</mrow>
</munderover>
<mi>π<!-- π --></mi>
<mrow>
<mo>(</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>m</mi>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>+</mo>
<mi>k</mi>
</mrow>
</msub>
</mfrac>
</mrow>
<mo>)</mo>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi (m)=\Phi (m,n)+n(\mu +1)+{\frac {\mu ^{2}-\mu }{2}}-1-\sum _{k=1}^{\mu }\pi \left({\frac {m}{p_{n+k}}}\right).}</annotation>
</semantics>
</math></span><img src="./49dae2e94d6979ea0cd9c9978e56fbcbe54cb311.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.005ex; width:60.179ex; height:7.009ex;" alt="{\displaystyle \pi (m)=\Phi (m,n)+n(\mu +1)+{\frac {\mu ^{2}-\mu }{2}}-1-\sum _{k=1}^{\mu }\pi \left({\frac {m}{p_{n+k}}}\right).}" loading="lazy"></span></dd></dl>
<p>Using this approach, Meissel computed <span class="texhtml"><i>π</i>(<i>x</i>)</span>, for <span class="texhtml mvar" style="font-style:italic;">x</span> equal to <span class="nowrap">5<span style="margin-left:0.25em;margin-right:0.15em;">×</span>10<sup>5</sup></span>, 10<sup>6</sup>, 10<sup>7</sup>, and 10<sup>8</sup>.
</p><p>In 1959, <a href="Derrick_Henry_Lehmer" class="mw-redirect" title="Derrick Henry Lehmer">Derrick Henry Lehmer</a> extended and simplified Meissel's method. Define, for real <span class="texhtml mvar" style="font-style:italic;">m</span> and for natural numbers <span class="texhtml mvar" style="font-style:italic;">n</span> and <span class="texhtml mvar" style="font-style:italic;">k</span>, <span class="texhtml"><i>P<sub>k</sub></i>(<i>m</i>,<i>n</i>)</span> as the number of numbers not greater than <span class="texhtml mvar" style="font-style:italic;">m</span> with exactly <span class="texhtml mvar" style="font-style:italic;">k</span> prime factors, all greater than <span class="texhtml mvar" style="font-style:italic;">p<sub>n</sub></span>. Furthermore, set <span class="texhtml"><i>P</i><sub>0</sub>(<i>m</i>,<i>n</i>) = 1</span>. Then
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \Phi (m,n)=\sum _{k=0}^{+\infty }P_{k}(m,n)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi mathvariant="normal">Φ<!-- Φ --></mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo>,</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<munderover>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
<mo>=</mo>
<mn>0</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mo>+</mo>
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munderover>
<msub>
<mi>P</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo>,</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \Phi (m,n)=\sum _{k=0}^{+\infty }P_{k}(m,n)}</annotation>
</semantics>
</math></span><img src="./118229d62542d234f8714a4b90bc159234de1ead.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:23.656ex; height:7.343ex;" alt="{\displaystyle \Phi (m,n)=\sum _{k=0}^{+\infty }P_{k}(m,n)}" loading="lazy"></span></dd></dl>
<p>where the sum actually has only finitely many nonzero terms. Let <span class="texhtml mvar" style="font-style:italic;">y</span> denote an integer such that <span class="texhtml"><span class="nowrap"><sup style="margin-right: -0.5em; vertical-align: 0.8em;">3</sup>√<span style="border-top:1px solid; padding:0 0.1em;"><i>m</i></span></span> ≤ <i>y</i> ≤ <span class="nowrap">√<span style="border-top:1px solid; padding:0 0.1em;"><i>m</i></span></span></span>, and set <span class="texhtml"><i>n</i> = <i>π</i>(<i>y</i>)</span>. Then <span class="texhtml"><i>P</i><sub>1</sub>(<i>m</i>,<i>n</i>) = <i>π</i>(<i>m</i>) − <i>n</i></span> and <span class="texhtml"><i>P<sub>k</sub></i>(<i>m</i>,<i>n</i>) = 0</span> when <span class="texhtml"><i>k</i> ≥ 3</span>. Therefore,
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi (m)=\Phi (m,n)+n-1-P_{2}(m,n)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi mathvariant="normal">Φ<!-- Φ --></mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo>,</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo>−<!-- − --></mo>
<msub>
<mi>P</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo>,</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi (m)=\Phi (m,n)+n-1-P_{2}(m,n)}</annotation>
</semantics>
</math></span><img src="./1fe53cdf8ad6f08bdcf2095e3cace38e82be89d4.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:36.14ex; height:2.843ex;" alt="{\displaystyle \pi (m)=\Phi (m,n)+n-1-P_{2}(m,n)}" loading="lazy"></span></dd></dl>
<p>The computation of <span class="texhtml"><i>P</i><sub>2</sub>(<i>m</i>,<i>n</i>)</span> can be obtained this way:
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle P_{2}(m,n)=\sum _{y<p\leq {\sqrt {m}}}\left(\pi \left({\frac {m}{p}}\right)-\pi (p)+1\right)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>P</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo>,</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>y</mi>
<mo>&lt;</mo>
<mi>p</mi>
<mo>≤<!-- ≤ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<msqrt>
<mi>m</mi>
</msqrt>
</mrow>
</mrow>
</munder>
<mrow>
<mo>(</mo>
<mrow>
<mi>π<!-- π --></mi>
<mrow>
<mo>(</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>m</mi>
<mi>p</mi>
</mfrac>
</mrow>
<mo>)</mo>
</mrow>
<mo>−<!-- − --></mo>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>p</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mn>1</mn>
</mrow>
<mo>)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle P_{2}(m,n)=\sum _{y&lt;p\leq {\sqrt {m}}}\left(\pi \left({\frac {m}{p}}\right)-\pi (p)+1\right)}</annotation>
</semantics>
</math></span><img src="./104b24bf3c4c57f139c5c527051370e5e610cd75.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.671ex; width:41.915ex; height:7.343ex;" alt="{\displaystyle P_{2}(m,n)=\sum _{y<p\leq {\sqrt {m}}}\left(\pi \left({\frac {m}{p}}\right)-\pi (p)+1\right)}" loading="lazy"></span></dd></dl>
<p>where the sum is over prime numbers.
</p><p>On the other hand, the computation of <span class="texhtml">Φ(<i>m</i>,<i>n</i>)</span> can be done using the following rules:
</p>
<ol><li><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \Phi (m,0)=\lfloor m\rfloor }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi mathvariant="normal">Φ<!-- Φ --></mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo>,</mo>
<mn>0</mn>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mo fence="false" stretchy="false">⌊<!-- ⌊ --></mo>
<mi>m</mi>
<mo fence="false" stretchy="false">⌋<!-- ⌋ --></mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \Phi (m,0)=\lfloor m\rfloor }</annotation>
</semantics>
</math></span><img src="./b55ef167806979b8a3a239262203e582ff4e4987.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:14.928ex; height:2.843ex;" alt="{\displaystyle \Phi (m,0)=\lfloor m\rfloor }" loading="lazy"></span></li>
<li><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \Phi (m,b)=\Phi (m,b-1)-\Phi \left({\frac {m}{p_{b}}},b-1\right)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi mathvariant="normal">Φ<!-- Φ --></mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo>,</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi mathvariant="normal">Φ<!-- Φ --></mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mo>,</mo>
<mi>b</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mo>−<!-- − --></mo>
<mi mathvariant="normal">Φ<!-- Φ --></mi>
<mrow>
<mo>(</mo>
<mrow>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>m</mi>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>b</mi>
</mrow>
</msub>
</mfrac>
</mrow>
<mo>,</mo>
<mi>b</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
<mo>)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \Phi (m,b)=\Phi (m,b-1)-\Phi \left({\frac {m}{p_{b}}},b-1\right)}</annotation>
</semantics>
</math></span><img src="./4de3cc5e77ebf21791f0f860120e4590635876a2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.505ex; width:39.524ex; height:6.176ex;" alt="{\displaystyle \Phi (m,b)=\Phi (m,b-1)-\Phi \left({\frac {m}{p_{b}}},b-1\right)}" loading="lazy"></span></li></ol>
<p>Using his method and an <a href="IBM_701" title="IBM 701">IBM 701</a>, Lehmer was able to compute the correct value of <span class="texhtml"><i>π</i>(10<sup>9</sup>)</span> and missed the correct value of <span class="texhtml"><i>π</i>(10<sup>10</sup>)</span> by 1.<sup id="cite_ref-lehmer_20-0" class="reference"><a href="#cite_note-lehmer-20"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup>
</p><p>Further improvements to this method were made by Lagarias, Miller, Odlyzko, Deléglise, and Rivat.<sup id="cite_ref-pix_comp_21-0" class="reference"><a href="#cite_note-pix_comp-21"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Other_prime-counting_functions">Other prime-counting functions</h2></div>
<p>Other prime-counting functions are also used because they are more convenient to work with.
</p>
<div class="mw-heading mw-heading3"><h3 id="Riemann's_prime-power_counting_function">Riemann's prime-power counting function</h3></div>
<p>Riemann's prime-power counting function is usually denoted as <span class="texhtml">Π<sub>0</sub>(<i>x</i>)</span> or <span class="texhtml"><i>J</i><sub>0</sub>(<i>x</i>)</span>. It has jumps of <span class="texhtml"><span class="sfrac">⁠<span class="tion"><span class="num">1</span><span class="sr-only">/</span><span class="den"><i>n</i></span></span>⁠</span></span> at prime powers <span class="texhtml mvar" style="font-style:italic;">p<sup>n</sup></span> and it takes a value halfway between the two sides at the discontinuities of <span class="texhtml"><i>π</i>(<i>x</i>)</span>. That added detail is used because the function may then be defined by an inverse <a href="Mellin_transform" title="Mellin transform">Mellin transform</a>.
</p><p>Formally, we may define <span class="texhtml">Π<sub>0</sub>(<i>x</i>)</span> by
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \Pi _{0}(x)={\frac {1}{2}}\left(\sum _{p^{n}<x}{\frac {1}{n}}+\sum _{p^{n}\leq x}{\frac {1}{n}}\right)\ }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi mathvariant="normal">Π<!-- Π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mn>2</mn>
</mfrac>
</mrow>
<mrow>
<mo>(</mo>
<mrow>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<msup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msup>
<mo>&lt;</mo>
<mi>x</mi>
</mrow>
</munder>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mi>n</mi>
</mfrac>
</mrow>
<mo>+</mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<msup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msup>
<mo>≤<!-- ≤ --></mo>
<mi>x</mi>
</mrow>
</munder>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mi>n</mi>
</mfrac>
</mrow>
</mrow>
<mo>)</mo>
</mrow>
<mtext>&nbsp;</mtext>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \Pi _{0}(x)={\frac {1}{2}}\left(\sum _{p^{n}&lt;x}{\frac {1}{n}}+\sum _{p^{n}\leq x}{\frac {1}{n}}\right)\ }</annotation>
</semantics>
</math></span><img src="./160accb459972018a71929c40b5075f16601841a.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.505ex; width:32.167ex; height:7.843ex;" alt="{\displaystyle \Pi _{0}(x)={\frac {1}{2}}\left(\sum _{p^{n}<x}{\frac {1}{n}}+\sum _{p^{n}\leq x}{\frac {1}{n}}\right)\ }" loading="lazy"></span></dd></dl>
<p>where the variable <span class="texhtml mvar" style="font-style:italic;">p</span> in each sum ranges over all primes within the specified limits.
</p><p>We may also write
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \ \Pi _{0}(x)=\sum _{n=2}^{x}{\frac {\Lambda (n)}{\log n}}-{\frac {\Lambda (x)}{2\log x}}=\sum _{n=1}^{\infty }{\frac {1}{n}}\pi _{0}\left(x^{1/n}\right)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mtext>&nbsp;</mtext>
<msub>
<mi mathvariant="normal">Π<!-- Π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<munderover>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>=</mo>
<mn>2</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi>x</mi>
</mrow>
</munderover>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi mathvariant="normal">Λ<!-- Λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
</mrow>
</mfrac>
</mrow>
<mo>−<!-- − --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi mathvariant="normal">Λ<!-- Λ --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
</mrow>
<mrow>
<mn>2</mn>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mo>=</mo>
<munderover>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munderover>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mi>n</mi>
</mfrac>
</mrow>
<msub>
<mi>π<!-- π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mrow>
<mo>(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mi>n</mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \ \Pi _{0}(x)=\sum _{n=2}^{x}{\frac {\Lambda (n)}{\log n}}-{\frac {\Lambda (x)}{2\log x}}=\sum _{n=1}^{\infty }{\frac {1}{n}}\pi _{0}\left(x^{1/n}\right)}</annotation>
</semantics>
</math></span><img src="./af0099cba3cb18057a0af4881865bde00f33bb32.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.005ex; width:47.731ex; height:6.843ex;" alt="{\displaystyle \ \Pi _{0}(x)=\sum _{n=2}^{x}{\frac {\Lambda (n)}{\log n}}-{\frac {\Lambda (x)}{2\log x}}=\sum _{n=1}^{\infty }{\frac {1}{n}}\pi _{0}\left(x^{1/n}\right)}" loading="lazy"></span></dd></dl>
<p>where <span class="texhtml">Λ</span> is the <a href="Von_Mangoldt_function" title="Von Mangoldt function">von Mangoldt function</a> and
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi _{0}(x)=\lim _{\varepsilon \to 0}{\frac {\pi (x-\varepsilon )+\pi (x+\varepsilon )}{2}}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>π<!-- π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<munder>
<mo movablelimits="true" form="prefix">lim</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>ε<!-- ε --></mi>
<mo stretchy="false">→<!-- → --></mo>
<mn>0</mn>
</mrow>
</munder>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo>−<!-- − --></mo>
<mi>ε<!-- ε --></mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo>+</mo>
<mi>ε<!-- ε --></mi>
<mo stretchy="false">)</mo>
</mrow>
<mn>2</mn>
</mfrac>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi _{0}(x)=\lim _{\varepsilon \to 0}{\frac {\pi (x-\varepsilon )+\pi (x+\varepsilon )}{2}}.}</annotation>
</semantics>
</math></span><img src="./20a40a5bdb8805b86a96b61511525769d36d8da6.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.005ex; width:33.348ex; height:5.843ex;" alt="{\displaystyle \pi _{0}(x)=\lim _{\varepsilon \to 0}{\frac {\pi (x-\varepsilon )+\pi (x+\varepsilon )}{2}}.}" loading="lazy"></span></dd></dl>
<p>The <a href="M%C3%B6bius_inversion_formula" title="Möbius inversion formula">Möbius inversion formula</a> then gives
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi _{0}(x)=\sum _{n=1}^{\infty }{\frac {\mu (n)}{n}}\ \Pi _{0}\left(x^{1/n}\right),}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>π<!-- π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<munderover>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munderover>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>μ<!-- μ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
<mi>n</mi>
</mfrac>
</mrow>
<mtext>&nbsp;</mtext>
<msub>
<mi mathvariant="normal">Π<!-- Π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mrow>
<mo>(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mi>n</mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi _{0}(x)=\sum _{n=1}^{\infty }{\frac {\mu (n)}{n}}\ \Pi _{0}\left(x^{1/n}\right),}</annotation>
</semantics>
</math></span><img src="./9904e72c2c4dd34408f732853d88d10384bf9086.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.005ex; width:29.567ex; height:6.843ex;" alt="{\displaystyle \pi _{0}(x)=\sum _{n=1}^{\infty }{\frac {\mu (n)}{n}}\ \Pi _{0}\left(x^{1/n}\right),}" loading="lazy"></span></dd></dl>
<p>where <span class="texhtml"><i>μ</i>(<i>n</i>)</span> is the <a href="M%C3%B6bius_function" title="Möbius function">Möbius function</a>.
</p><p>Knowing the relationship between the logarithm of the <a href="Riemann_zeta_function" title="Riemann zeta function">Riemann zeta function</a> and the <a href="Von_Mangoldt_function" title="Von Mangoldt function">von Mangoldt function</a> <span class="texhtml">Λ</span>, and using the <a href="Perron_formula" class="mw-redirect" title="Perron formula">Perron formula</a> we have
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \log \zeta (s)=s\int _{0}^{\infty }\Pi _{0}(x)x^{-s-1}\,\mathrm {d} x}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>ζ<!-- ζ --></mi>
<mo stretchy="false">(</mo>
<mi>s</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>s</mi>
<msubsup>
<mo>∫<!-- ∫ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</msubsup>
<msub>
<mi mathvariant="normal">Π<!-- Π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mi>s</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</msup>
<mspace width="thinmathspace"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">d</mi>
</mrow>
<mi>x</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \log \zeta (s)=s\int _{0}^{\infty }\Pi _{0}(x)x^{-s-1}\,\mathrm {d} x}</annotation>
</semantics>
</math></span><img src="./2af5fdbfa073b9bf4f880ab1f13611d30d9451cf.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.338ex; width:31.314ex; height:5.843ex;" alt="{\displaystyle \log \zeta (s)=s\int _{0}^{\infty }\Pi _{0}(x)x^{-s-1}\,\mathrm {d} x}" loading="lazy"></span></dd></dl>
<div class="mw-heading mw-heading3"><h3 id="Chebyshev's_function">Chebyshev's function</h3></div>
<p>The <a href="Chebyshev_function" title="Chebyshev function">Chebyshev function</a> weights primes or prime powers <span class="texhtml mvar" style="font-style:italic;">p<sup>n</sup></span> by <span class="texhtml">log <i>p</i></span>:
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\begin{aligned}\vartheta (x)&amp;=\sum _{p\leq x}\log p\\\psi (x)&amp;=\sum _{p^{n}\leq x}\log p=\sum _{n=1}^{\infty }\vartheta \left(x^{1/n}\right)=\sum _{n\leq x}\Lambda (n).\end{aligned}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true">
<mtr>
<mtd>
<mi>ϑ<!-- ϑ --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd>
<mi></mi>
<mo>=</mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>p</mi>
<mo>≤<!-- ≤ --></mo>
<mi>x</mi>
</mrow>
</munder>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>p</mi>
</mtd>
</mtr>
<mtr>
<mtd>
<mi>ψ<!-- ψ --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd>
<mi></mi>
<mo>=</mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<msup>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msup>
<mo>≤<!-- ≤ --></mo>
<mi>x</mi>
</mrow>
</munder>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>p</mi>
<mo>=</mo>
<munderover>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munderover>
<mi>ϑ<!-- ϑ --></mi>
<mrow>
<mo>(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mi>n</mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mo>=</mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>≤<!-- ≤ --></mo>
<mi>x</mi>
</mrow>
</munder>
<mi mathvariant="normal">Λ<!-- Λ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>.</mo>
</mtd>
</mtr>
</mtable>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\begin{aligned}\vartheta (x)&amp;=\sum _{p\leq x}\log p\\\psi (x)&amp;=\sum _{p^{n}\leq x}\log p=\sum _{n=1}^{\infty }\vartheta \left(x^{1/n}\right)=\sum _{n\leq x}\Lambda (n).\end{aligned}}}</annotation>
</semantics>
</math></span><img src="./41a2b156eac5f551c06e37e080c215a86d008150.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -5.793ex; margin-bottom: -0.212ex; width:45.302ex; height:13.176ex;" alt="{\displaystyle {\begin{aligned}\vartheta (x)&amp;=\sum _{p\leq x}\log p\\\psi (x)&amp;=\sum _{p^{n}\leq x}\log p=\sum _{n=1}^{\infty }\vartheta \left(x^{1/n}\right)=\sum _{n\leq x}\Lambda (n).\end{aligned}}}" loading="lazy"></span></dd></dl>
<p>For <span class="texhtml"><i>x</i> ≥ 2</span>,<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \vartheta (x)=\pi (x)\log x-\int _{2}^{x}{\frac {\pi (t)}{t}}\,\mathrm {d} t}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>ϑ<!-- ϑ --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
<mo>−<!-- − --></mo>
<msubsup>
<mo>∫<!-- ∫ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi>x</mi>
</mrow>
</msubsup>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>t</mi>
<mo stretchy="false">)</mo>
</mrow>
<mi>t</mi>
</mfrac>
</mrow>
<mspace width="thinmathspace"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">d</mi>
</mrow>
<mi>t</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \vartheta (x)=\pi (x)\log x-\int _{2}^{x}{\frac {\pi (t)}{t}}\,\mathrm {d} t}</annotation>
</semantics>
</math></span><img src="./9f9894770140df494589a221a2b4413e0593d606.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.338ex; width:31.358ex; height:6.176ex;" alt="{\displaystyle \vartheta (x)=\pi (x)\log x-\int _{2}^{x}{\frac {\pi (t)}{t}}\,\mathrm {d} t}" loading="lazy"></span></dd></dl>
<p>and
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi (x)={\frac {\vartheta (x)}{\log x}}+\int _{2}^{x}{\frac {\vartheta (t)}{t\log ^{2}(t)}}\mathrm {d} t.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>ϑ<!-- ϑ --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
</mrow>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mo>+</mo>
<msubsup>
<mo>∫<!-- ∫ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi>x</mi>
</mrow>
</msubsup>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>ϑ<!-- ϑ --></mi>
<mo stretchy="false">(</mo>
<mi>t</mi>
<mo stretchy="false">)</mo>
</mrow>
<mrow>
<mi>t</mi>
<msup>
<mi>log</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>t</mi>
<mo stretchy="false">)</mo>
</mrow>
</mfrac>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">d</mi>
</mrow>
<mi>t</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi (x)={\frac {\vartheta (x)}{\log x}}+\int _{2}^{x}{\frac {\vartheta (t)}{t\log ^{2}(t)}}\mathrm {d} t.}</annotation>
</semantics>
</math></span><img src="./48b9e8fa405f84183841dcddd20ba4db8689c821.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.005ex; width:31.475ex; height:6.843ex;" alt="{\displaystyle \pi (x)={\frac {\vartheta (x)}{\log x}}+\int _{2}^{x}{\frac {\vartheta (t)}{t\log ^{2}(t)}}\mathrm {d} t.}" loading="lazy"></span></dd></dl>
<div class="mw-heading mw-heading2"><h2 id="Formulas_for_prime-counting_functions">Formulas for prime-counting functions</h2></div>
<p>Formulas for prime-counting functions come in two kinds: arithmetic formulas and analytic formulas. Analytic formulas for prime-counting were the first used to prove the <a href="Prime_number_theorem" title="Prime number theorem">prime number theorem</a>. They stem from the work of Riemann and <a href="Hans_Carl_Friedrich_von_Mangoldt" title="Hans Carl Friedrich von Mangoldt">von Mangoldt</a>, and are generally known as <a href="Explicit_formulae_(L-function)" class="mw-redirect" title="Explicit formulae (L-function)">explicit formulae</a>.<sup id="cite_ref-Titchmarsh_23-0" class="reference"><a href="#cite_note-Titchmarsh-23"><span class="cite-bracket">[</span>23<span class="cite-bracket">]</span></a></sup>
</p><p>We have the following expression for the second <a href="Chebyshev_function" title="Chebyshev function">Chebyshev function</a> <span class="texhtml mvar" style="font-style:italic;">ψ</span>:
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \psi _{0}(x)=x-\sum _{\rho }{\frac {x^{\rho }}{\rho }}-\log 2\pi -{\frac {1}{2}}\log \left(1-x^{-2}\right),}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>ψ<!-- ψ --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>x</mi>
<mo>−<!-- − --></mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>ρ<!-- ρ --></mi>
</mrow>
</munder>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>ρ<!-- ρ --></mi>
</mrow>
</msup>
<mi>ρ<!-- ρ --></mi>
</mfrac>
</mrow>
<mo>−<!-- − --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mn>2</mn>
<mi>π<!-- π --></mi>
<mo>−<!-- − --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mn>2</mn>
</mfrac>
</mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<mrow>
<mn>1</mn>
<mo>−<!-- − --></mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>2</mn>
</mrow>
</msup>
</mrow>
<mo>)</mo>
</mrow>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \psi _{0}(x)=x-\sum _{\rho }{\frac {x^{\rho }}{\rho }}-\log 2\pi -{\frac {1}{2}}\log \left(1-x^{-2}\right),}</annotation>
</semantics>
</math></span><img src="./d4791d3546b838dab3c728f4d74dd0f77c0ea65c.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.338ex; width:47.298ex; height:6.676ex;" alt="{\displaystyle \psi _{0}(x)=x-\sum _{\rho }{\frac {x^{\rho }}{\rho }}-\log 2\pi -{\frac {1}{2}}\log \left(1-x^{-2}\right),}" loading="lazy"></span></dd></dl>
<p>where
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \psi _{0}(x)=\lim _{\varepsilon \to 0}{\frac {\psi (x-\varepsilon )+\psi (x+\varepsilon )}{2}}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>ψ<!-- ψ --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<munder>
<mo movablelimits="true" form="prefix">lim</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>ε<!-- ε --></mi>
<mo stretchy="false">→<!-- → --></mo>
<mn>0</mn>
</mrow>
</munder>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>ψ<!-- ψ --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo>−<!-- − --></mo>
<mi>ε<!-- ε --></mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mi>ψ<!-- ψ --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo>+</mo>
<mi>ε<!-- ε --></mi>
<mo stretchy="false">)</mo>
</mrow>
<mn>2</mn>
</mfrac>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \psi _{0}(x)=\lim _{\varepsilon \to 0}{\frac {\psi (x-\varepsilon )+\psi (x+\varepsilon )}{2}}.}</annotation>
</semantics>
</math></span><img src="./c55122c67e4cd7e21200273b7ea72801ad7d2e46.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.005ex; width:33.899ex; height:5.843ex;" alt="{\displaystyle \psi _{0}(x)=\lim _{\varepsilon \to 0}{\frac {\psi (x-\varepsilon )+\psi (x+\varepsilon )}{2}}.}" loading="lazy"></span></dd></dl>
<p>Here <span class="texhtml mvar" style="font-style:italic;">ρ</span> are the zeros of the Riemann zeta function in the critical strip, where the real part of <span class="texhtml mvar" style="font-style:italic;">ρ</span> is between zero and one. The formula is valid for values of <span class="texhtml mvar" style="font-style:italic;">x</span> greater than one, which is the region of interest. The sum over the roots is conditionally convergent, and should be taken in order of increasing <a href="Absolute_value" title="Absolute value">absolute value</a> of the imaginary part. Note that the same sum over the trivial roots gives the last <a href="Subtrahend" class="mw-redirect" title="Subtrahend">subtrahend</a> in the formula.
</p><p>For <span class="texhtml"><i>Π</i><sub>0</sub>(<i>x</i>)</span> we have a more complicated formula
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \Pi _{0}(x)=\operatorname {li} (x)-\sum _{\rho }\operatorname {li} \left(x^{\rho }\right)-\log 2+\int _{x}^{\infty }{\frac {\mathrm {d} t}{t\left(t^{2}-1\right)\log t}}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi mathvariant="normal">Π<!-- Π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>li</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>−<!-- − --></mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>ρ<!-- ρ --></mi>
</mrow>
</munder>
<mi>li</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>ρ<!-- ρ --></mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mo>−<!-- − --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mn>2</mn>
<mo>+</mo>
<msubsup>
<mo>∫<!-- ∫ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>x</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</msubsup>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">d</mi>
</mrow>
<mi>t</mi>
</mrow>
<mrow>
<mi>t</mi>
<mrow>
<mo>(</mo>
<mrow>
<msup>
<mi>t</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
<mo>)</mo>
</mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>t</mi>
</mrow>
</mfrac>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \Pi _{0}(x)=\operatorname {li} (x)-\sum _{\rho }\operatorname {li} \left(x^{\rho }\right)-\log 2+\int _{x}^{\infty }{\frac {\mathrm {d} t}{t\left(t^{2}-1\right)\log t}}.}</annotation>
</semantics>
</math></span><img src="./647589bbbfed457d1228c225eaa64e680446ea55.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.338ex; width:55.495ex; height:6.843ex;" alt="{\displaystyle \Pi _{0}(x)=\operatorname {li} (x)-\sum _{\rho }\operatorname {li} \left(x^{\rho }\right)-\log 2+\int _{x}^{\infty }{\frac {\mathrm {d} t}{t\left(t^{2}-1\right)\log t}}.}" loading="lazy"></span></dd></dl>
<p>Again, the formula is valid for <span class="texhtml"><i>x</i> &gt; 1</span>, while <span class="texhtml mvar" style="font-style:italic;">ρ</span> are the nontrivial zeros of the zeta function ordered according to their absolute value. The first term <span class="texhtml">li(<i>x</i>)</span> is the usual <a href="Logarithmic_integral_function" title="Logarithmic integral function">logarithmic integral function</a>; the expression <span class="texhtml">li(<i>x<sup>ρ</sup></i>)</span> in the second term should be considered as <span class="texhtml">Ei(<i>ρ</i> log <i>x</i>)</span>, where <span class="texhtml">Ei</span> is the <a href="Analytic_continuation" title="Analytic continuation">analytic continuation</a> of the <a href="Exponential_integral" title="Exponential integral">exponential integral</a> function from negative reals to the <a href="Complex_plane" title="Complex plane">complex plane</a> with branch cut along the positive reals. The final integral is equal to the series over the trivial zeros:
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \int _{x}^{\infty }{\frac {\mathrm {d} t}{t\left(t^{2}-1\right)\log t}}=\int _{x}^{\infty }{\frac {1}{t\log t}}\left(\sum _{m}t^{-2m}\right)\,\mathrm {d} t=\sum _{m}\int _{x}^{\infty }{\frac {t^{-2m}}{t\log t}}\,\mathrm {d} t\,\,{\overset {\left(u=t^{-2m}\right)}{=}}-\sum _{m}\operatorname {li} \left(x^{-2m}\right)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msubsup>
<mo>∫<!-- ∫ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>x</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</msubsup>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">d</mi>
</mrow>
<mi>t</mi>
</mrow>
<mrow>
<mi>t</mi>
<mrow>
<mo>(</mo>
<mrow>
<msup>
<mi>t</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
<mo>)</mo>
</mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>t</mi>
</mrow>
</mfrac>
</mrow>
<mo>=</mo>
<msubsup>
<mo>∫<!-- ∫ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>x</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</msubsup>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mrow>
<mi>t</mi>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>t</mi>
</mrow>
</mfrac>
</mrow>
<mrow>
<mo>(</mo>
<mrow>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>m</mi>
</mrow>
</munder>
<msup>
<mi>t</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>2</mn>
<mi>m</mi>
</mrow>
</msup>
</mrow>
<mo>)</mo>
</mrow>
<mspace width="thinmathspace"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">d</mi>
</mrow>
<mi>t</mi>
<mo>=</mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>m</mi>
</mrow>
</munder>
<msubsup>
<mo>∫<!-- ∫ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>x</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</msubsup>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<msup>
<mi>t</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>2</mn>
<mi>m</mi>
</mrow>
</msup>
<mrow>
<mi>t</mi>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>t</mi>
</mrow>
</mfrac>
</mrow>
<mspace width="thinmathspace"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">d</mi>
</mrow>
<mi>t</mi>
<mspace width="thinmathspace"></mspace>
<mspace width="thinmathspace"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mover>
<mo>=</mo>
<mrow>
<mo>(</mo>
<mrow>
<mi>u</mi>
<mo>=</mo>
<msup>
<mi>t</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>2</mn>
<mi>m</mi>
</mrow>
</msup>
</mrow>
<mo>)</mo>
</mrow>
</mover>
</mrow>
<mo>−<!-- − --></mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>m</mi>
</mrow>
</munder>
<mi>li</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>2</mn>
<mi>m</mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \int _{x}^{\infty }{\frac {\mathrm {d} t}{t\left(t^{2}-1\right)\log t}}=\int _{x}^{\infty }{\frac {1}{t\log t}}\left(\sum _{m}t^{-2m}\right)\,\mathrm {d} t=\sum _{m}\int _{x}^{\infty }{\frac {t^{-2m}}{t\log t}}\,\mathrm {d} t\,\,{\overset {\left(u=t^{-2m}\right)}{=}}-\sum _{m}\operatorname {li} \left(x^{-2m}\right)}</annotation>
</semantics>
</math></span><img src="./1bbf603a0f7fe6c473cd146998a1bb67b3b302ee.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:92.092ex; height:7.509ex;" alt="{\displaystyle \int _{x}^{\infty }{\frac {\mathrm {d} t}{t\left(t^{2}-1\right)\log t}}=\int _{x}^{\infty }{\frac {1}{t\log t}}\left(\sum _{m}t^{-2m}\right)\,\mathrm {d} t=\sum _{m}\int _{x}^{\infty }{\frac {t^{-2m}}{t\log t}}\,\mathrm {d} t\,\,{\overset {\left(u=t^{-2m}\right)}{=}}-\sum _{m}\operatorname {li} \left(x^{-2m}\right)}" loading="lazy"></span></dd></dl>
<p>Thus, <a href="M%C3%B6bius_inversion_formula" title="Möbius inversion formula">Möbius inversion formula</a> gives us<sup id="cite_ref-RieselGohl_10-1" class="reference"><a href="#cite_note-RieselGohl-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi _{0}(x)=\operatorname {R} (x)-\sum _{\rho }\operatorname {R} \left(x^{\rho }\right)-\sum _{m}\operatorname {R} \left(x^{-2m}\right)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>π<!-- π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>−<!-- − --></mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>ρ<!-- ρ --></mi>
</mrow>
</munder>
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>ρ<!-- ρ --></mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mo>−<!-- − --></mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>m</mi>
</mrow>
</munder>
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>2</mn>
<mi>m</mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi _{0}(x)=\operatorname {R} (x)-\sum _{\rho }\operatorname {R} \left(x^{\rho }\right)-\sum _{m}\operatorname {R} \left(x^{-2m}\right)}</annotation>
</semantics>
</math></span><img src="./e20f10eea2fe7818b9c516a8c38ed056ea710ea0.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.338ex; width:41.509ex; height:5.843ex;" alt="{\displaystyle \pi _{0}(x)=\operatorname {R} (x)-\sum _{\rho }\operatorname {R} \left(x^{\rho }\right)-\sum _{m}\operatorname {R} \left(x^{-2m}\right)}" loading="lazy"></span></dd></dl>
<p>valid for <span class="texhtml"><i>x</i> &gt; 1</span>, where
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \operatorname {R} (x)=\sum _{n=1}^{\infty }{\frac {\mu (n)}{n}}\operatorname {li} \left(x^{1/n}\right)=1+\sum _{k=1}^{\infty }{\frac {\left(\log x\right)^{k}}{k!k\zeta (k+1)}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<munderover>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munderover>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>μ<!-- μ --></mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
<mi>n</mi>
</mfrac>
</mrow>
<mi>li</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mi>n</mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mn>1</mn>
<mo>+</mo>
<munderover>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munderover>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<msup>
<mrow>
<mo>(</mo>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
<mo>)</mo>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
</mrow>
</msup>
<mrow>
<mi>k</mi>
<mo>!</mo>
<mi>k</mi>
<mi>ζ<!-- ζ --></mi>
<mo stretchy="false">(</mo>
<mi>k</mi>
<mo>+</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</mrow>
</mfrac>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \operatorname {R} (x)=\sum _{n=1}^{\infty }{\frac {\mu (n)}{n}}\operatorname {li} \left(x^{1/n}\right)=1+\sum _{k=1}^{\infty }{\frac {\left(\log x\right)^{k}}{k!k\zeta (k+1)}}}</annotation>
</semantics>
</math></span><img src="./b62ed345776a1ac5bb0a794071c8d80a71db2cc3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.005ex; width:48.648ex; height:7.343ex;" alt="{\displaystyle \operatorname {R} (x)=\sum _{n=1}^{\infty }{\frac {\mu (n)}{n}}\operatorname {li} \left(x^{1/n}\right)=1+\sum _{k=1}^{\infty }{\frac {\left(\log x\right)^{k}}{k!k\zeta (k+1)}}}" loading="lazy"></span></dd></dl>
<p>is Riemann's R-function<sup id="cite_ref-mathworld_r_24-0" class="reference"><a href="#cite_note-mathworld_r-24"><span class="cite-bracket">[</span>24<span class="cite-bracket">]</span></a></sup> and <span class="texhtml"><i>μ</i>(<i>n</i>)</span> is the <a href="M%C3%B6bius_function" title="Möbius function">Möbius function</a>. The latter series for it is known as <a href="J%C3%B8rgen_Pedersen_Gram" title="Jørgen Pedersen Gram">Gram</a> series.<sup id="cite_ref-Riesel94_25-0" class="reference"><a href="#cite_note-Riesel94-25"><span class="cite-bracket">[</span>25<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-mathworld_gram_26-0" class="reference"><a href="#cite_note-mathworld_gram-26"><span class="cite-bracket">[</span>26<span class="cite-bracket">]</span></a></sup> Because <span class="texhtml">log <i>x</i> &lt; <i>x</i></span> for all <span class="texhtml"><i>x</i> &gt; 0</span>, this series converges for all positive <span class="texhtml mvar" style="font-style:italic;">x</span> by comparison with the series for <span class="texhtml mvar" style="font-style:italic;">e<sup>x</sup></span>. The logarithm in the Gram series of the sum over the non-trivial zero contribution should be evaluated as <span class="texhtml"><i>ρ</i> log <i>x</i></span> and not <span class="texhtml">log <i>x<sup>ρ</sup></i></span>.
</p><p>Folkmar Bornemann proved,<sup id="cite_ref-27" class="reference"><a href="#cite_note-27"><span class="cite-bracket">[</span>27<span class="cite-bracket">]</span></a></sup> when assuming the <a href="Conjecture" title="Conjecture">conjecture</a> that all zeros of the Riemann zeta function are simple,<sup id="cite_ref-28" class="reference"><a href="#cite_note-28"><span class="cite-bracket">[</span>note 1<span class="cite-bracket">]</span></a></sup> that
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \operatorname {R} \left(e^{-2\pi t}\right)={\frac {1}{\pi }}\sum _{k=1}^{\infty }{\frac {(-1)^{k-1}t^{-2k-1}}{(2k+1)\zeta (2k+1)}}+{\frac {1}{2}}\sum _{\rho }{\frac {t^{-\rho }}{\rho \cos {\frac {\pi \rho }{2}}\zeta '(\rho )}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<msup>
<mi>e</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>2</mn>
<mi>π<!-- π --></mi>
<mi>t</mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mi>π<!-- π --></mi>
</mfrac>
</mrow>
<munderover>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munderover>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mo stretchy="false">(</mo>
<mo>−<!-- − --></mo>
<mn>1</mn>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>k</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</msup>
<msup>
<mi>t</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>2</mn>
<mi>k</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</msup>
</mrow>
<mrow>
<mo stretchy="false">(</mo>
<mn>2</mn>
<mi>k</mi>
<mo>+</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mi>ζ<!-- ζ --></mi>
<mo stretchy="false">(</mo>
<mn>2</mn>
<mi>k</mi>
<mo>+</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</mrow>
</mfrac>
</mrow>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mn>2</mn>
</mfrac>
</mrow>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>ρ<!-- ρ --></mi>
</mrow>
</munder>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<msup>
<mi>t</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mi>ρ<!-- ρ --></mi>
</mrow>
</msup>
<mrow>
<mi>ρ<!-- ρ --></mi>
<mi>cos</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>π<!-- π --></mi>
<mi>ρ<!-- ρ --></mi>
</mrow>
<mn>2</mn>
</mfrac>
</mrow>
<msup>
<mi>ζ<!-- ζ --></mi>
<mo>′</mo>
</msup>
<mo stretchy="false">(</mo>
<mi>ρ<!-- ρ --></mi>
<mo stretchy="false">)</mo>
</mrow>
</mfrac>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \operatorname {R} \left(e^{-2\pi t}\right)={\frac {1}{\pi }}\sum _{k=1}^{\infty }{\frac {(-1)^{k-1}t^{-2k-1}}{(2k+1)\zeta (2k+1)}}+{\frac {1}{2}}\sum _{\rho }{\frac {t^{-\rho }}{\rho \cos {\frac {\pi \rho }{2}}\zeta '(\rho )}}}</annotation>
</semantics>
</math></span><img src="./ead1813878acfd98f90631d5db40c400c61fdb7b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.338ex; width:58.825ex; height:7.343ex;" alt="{\displaystyle \operatorname {R} \left(e^{-2\pi t}\right)={\frac {1}{\pi }}\sum _{k=1}^{\infty }{\frac {(-1)^{k-1}t^{-2k-1}}{(2k+1)\zeta (2k+1)}}+{\frac {1}{2}}\sum _{\rho }{\frac {t^{-\rho }}{\rho \cos {\frac {\pi \rho }{2}}\zeta '(\rho )}}}" loading="lazy"></span></dd></dl>
<p>where <span class="texhtml mvar" style="font-style:italic;">ρ</span> runs over the non-trivial zeros of the Riemann zeta function and <span class="texhtml"><i>t</i> &gt; 0</span>.
</p><p>The sum over non-trivial zeta zeros in the formula for <span class="texhtml"><i>π</i><sub>0</sub>(<i>x</i>)</span> describes the fluctuations of <span class="texhtml"><i>π</i><sub>0</sub>(<i>x</i>)</span> while the remaining terms give the "smooth" part of prime-counting function,<sup id="cite_ref-Watkins_29-0" class="reference"><a href="#cite_note-Watkins-29"><span class="cite-bracket">[</span>28<span class="cite-bracket">]</span></a></sup> so one can use
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \operatorname {R} (x)-\sum _{m=1}^{\infty }\operatorname {R} \left(x^{-2m}\right)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>−<!-- − --></mo>
<munderover>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>m</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munderover>
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow>
<mo>(</mo>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>2</mn>
<mi>m</mi>
</mrow>
</msup>
<mo>)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \operatorname {R} (x)-\sum _{m=1}^{\infty }\operatorname {R} \left(x^{-2m}\right)}</annotation>
</semantics>
</math></span><img src="./70c29051422ed59df201cee342e88b3e5848761b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.005ex; width:20.566ex; height:6.843ex;" alt="{\displaystyle \operatorname {R} (x)-\sum _{m=1}^{\infty }\operatorname {R} \left(x^{-2m}\right)}" loading="lazy"></span></dd></dl>
<p>as a good estimator of <span class="texhtml"><i>π</i>(<i>x</i>)</span> for <span class="texhtml"><i>x</i> &gt; 1</span>. In fact, since the second term approaches 0 as <span class="texhtml"><i>x</i> → ∞</span>, while the amplitude of the "noisy" part is heuristically about <span class="texhtml"><span class="sfrac">⁠<span class="tion"><span class="num"><span class="nowrap">√<span style="border-top:1px solid; padding:0 0.1em;"><i>x</i></span></span></span><span class="sr-only">/</span><span class="den">log <i>x</i></span></span>⁠</span></span>, estimating <span class="texhtml"><i>π</i>(<i>x</i>)</span> by <span class="texhtml">R(<i>x</i>)</span> alone is just as good, and fluctuations of the <a href="Distribution_of_primes" class="mw-redirect" title="Distribution of primes">distribution of primes</a> may be clearly represented with the function
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\bigl (}\pi _{0}(x)-\operatorname {R} (x){\bigr )}{\frac {\log x}{\sqrt {x}}}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mrow class="MJX-TeXAtom-OPEN">
<mo maxsize="1.2em" minsize="1.2em">(</mo>
</mrow>
</mrow>
<msub>
<mi>π<!-- π --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>0</mn>
</mrow>
</msub>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>−<!-- − --></mo>
<mi mathvariant="normal">R</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mrow class="MJX-TeXAtom-CLOSE">
<mo maxsize="1.2em" minsize="1.2em">)</mo>
</mrow>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
<msqrt>
<mi>x</mi>
</msqrt>
</mfrac>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\bigl (}\pi _{0}(x)-\operatorname {R} (x){\bigr )}{\frac {\log x}{\sqrt {x}}}.}</annotation>
</semantics>
</math></span><img src="./bdd8b2c09a89757b2fa74b4f9c5495d1c4227e31.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.838ex; width:21.51ex; height:6.343ex;" alt="{\displaystyle {\bigl (}\pi _{0}(x)-\operatorname {R} (x){\bigr )}{\frac {\log x}{\sqrt {x}}}.}" loading="lazy"></span></dd></dl>
<div class="mw-heading mw-heading2"><h2 id="Inequalities">Inequalities</h2></div>
<p><a href="Srinivasa_Ramanujan" title="Srinivasa Ramanujan">Ramanujan</a><sup id="cite_ref-30" class="reference"><a href="#cite_note-30"><span class="cite-bracket">[</span>29<span class="cite-bracket">]</span></a></sup> proved that the inequality
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi (x)^{2}<{\frac {ex}{\log x}}\pi \left({\frac {x}{e}}\right)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>&lt;</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>e</mi>
<mi>x</mi>
</mrow>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mi>π<!-- π --></mi>
<mrow>
<mo>(</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mi>e</mi>
</mfrac>
</mrow>
<mo>)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi (x)^{2}&lt;{\frac {ex}{\log x}}\pi \left({\frac {x}{e}}\right)}</annotation>
</semantics>
</math></span><img src="./50a0d589fe787fc81945e91420ce8511617662b9.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.338ex; width:20.809ex; height:5.343ex;" alt="{\displaystyle \pi (x)^{2}<{\frac {ex}{\log x}}\pi \left({\frac {x}{e}}\right)}" loading="lazy"></span></dd></dl>
<p>holds for all sufficiently large values of <span class="texhtml mvar" style="font-style:italic;">x</span>.
</p><p>Here are some useful inequalities for <span class="texhtml"><i>π</i>(<i>x</i>)</span>.
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\frac {x}{\log x}}<\pi (x)<1.25506{\frac {x}{\log x}}\quad {\text{for }}x\geq 17.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mo>&lt;</mo>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>&lt;</mo>
<mn>1.25506</mn>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext>for&nbsp;</mtext>
</mrow>
<mi>x</mi>
<mo>≥<!-- ≥ --></mo>
<mn>17.</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\frac {x}{\log x}}&lt;\pi (x)&lt;1.25506{\frac {x}{\log x}}\quad {\text{for }}x\geq 17.}</annotation>
</semantics>
</math></span><img src="./3f6e18fb91e5a9725995cdff553e9fe5dfe4c412.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.338ex; width:42.428ex; height:5.176ex;" alt="{\displaystyle {\frac {x}{\log x}}<\pi (x)<1.25506{\frac {x}{\log x}}\quad {\text{for }}x\geq 17.}" loading="lazy"></span></dd></dl>
<p>The left inequality holds for <span class="texhtml"><i>x</i> ≥ 17</span> and the right inequality holds for <span class="texhtml"><i>x</i> &gt; 1</span>. The constant 1.25506 is <span class="texhtml">30<span class="sfrac">⁠<span class="tion"><span class="num">log 113</span><span class="sr-only">/</span><span class="den">113</span></span>⁠</span></span> to 5 decimal places, as <span class="texhtml"><i>π</i>(<i>x</i>) <span class="sfrac">⁠<span class="tion"><span class="num">log <i>x</i></span><span class="sr-only">/</span><span class="den"><i>x</i></span></span>⁠</span></span> has its maximum value at <span class="texhtml"><i>x</i> = <i>p</i><sub>30</sub> = 113</span>.<sup id="cite_ref-Rosser1962_31-0" class="reference"><a href="#cite_note-Rosser1962-31"><span class="cite-bracket">[</span>30<span class="cite-bracket">]</span></a></sup>
</p><p><a href="Pierre_Dusart" title="Pierre Dusart">Pierre Dusart</a> proved in 2010:<sup id="cite_ref-Dusart2010_32-0" class="reference"><a href="#cite_note-Dusart2010-32"><span class="cite-bracket">[</span>31<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\frac {x}{\log x-1}}<\pi (x)<{\frac {x}{\log x-1.1}}\quad {\text{for }}x\geq 5393{\text{ and }}x\geq 60184,{\text{ respectively.}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</mfrac>
</mrow>
<mo>&lt;</mo>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>&lt;</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
<mo>−<!-- − --></mo>
<mn>1.1</mn>
</mrow>
</mfrac>
</mrow>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext>for&nbsp;</mtext>
</mrow>
<mi>x</mi>
<mo>≥<!-- ≥ --></mo>
<mn>5393</mn>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;and&nbsp;</mtext>
</mrow>
<mi>x</mi>
<mo>≥<!-- ≥ --></mo>
<mn>60184</mn>
<mo>,</mo>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;respectively.</mtext>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\frac {x}{\log x-1}}&lt;\pi (x)&lt;{\frac {x}{\log x-1.1}}\quad {\text{for }}x\geq 5393{\text{ and }}x\geq 60184,{\text{ respectively.}}}</annotation>
</semantics>
</math></span><img src="./69492ba54c47a5e6b1be6ecaf24a01b7faf927e3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.338ex; width:75.613ex; height:5.176ex;" alt="{\displaystyle {\frac {x}{\log x-1}}<\pi (x)<{\frac {x}{\log x-1.1}}\quad {\text{for }}x\geq 5393{\text{ and }}x\geq 60184,{\text{ respectively.}}}" loading="lazy"></span></dd></dl>
<p>More recently, Dusart has proved<sup id="cite_ref-33" class="reference"><a href="#cite_note-33"><span class="cite-bracket">[</span>32<span class="cite-bracket">]</span></a></sup>
(Theorem 5.1) that
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\frac {x}{\log x}}\left(1+{\frac {1}{\log x}}+{\frac {2}{\log ^{2}x}}\right)\leq \pi (x)\leq {\frac {x}{\log x}}\left(1+{\frac {1}{\log x}}+{\frac {2}{\log ^{2}x}}+{\frac {7.59}{\log ^{3}x}}\right),}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mrow>
<mo>(</mo>
<mrow>
<mn>1</mn>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>2</mn>
<mrow>
<msup>
<mi>log</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
</mrow>
<mo>)</mo>
</mrow>
<mo>≤<!-- ≤ --></mo>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>≤<!-- ≤ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mi>x</mi>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mrow>
<mo>(</mo>
<mrow>
<mn>1</mn>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>1</mn>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>2</mn>
<mrow>
<msup>
<mi>log</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>7.59</mn>
<mrow>
<msup>
<mi>log</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>3</mn>
</mrow>
</msup>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
</mrow>
</mfrac>
</mrow>
</mrow>
<mo>)</mo>
</mrow>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\frac {x}{\log x}}\left(1+{\frac {1}{\log x}}+{\frac {2}{\log ^{2}x}}\right)\leq \pi (x)\leq {\frac {x}{\log x}}\left(1+{\frac {1}{\log x}}+{\frac {2}{\log ^{2}x}}+{\frac {7.59}{\log ^{3}x}}\right),}</annotation>
</semantics>
</math></span><img src="./0e3d474163a87030bdccd50ed52f99a0b0ca6e9b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:78.201ex; height:7.509ex;" alt="{\displaystyle {\frac {x}{\log x}}\left(1+{\frac {1}{\log x}}+{\frac {2}{\log ^{2}x}}\right)\leq \pi (x)\leq {\frac {x}{\log x}}\left(1+{\frac {1}{\log x}}+{\frac {2}{\log ^{2}x}}+{\frac {7.59}{\log ^{3}x}}\right),}" loading="lazy"></span></dd></dl>
<p>for <span class="texhtml"><i>x</i> ≥ 88789</span> and <span class="texhtml"><i>x</i> &gt; 1</span>, respectively.
</p><p>Going in the other direction, an approximation for the <span class="texhtml mvar" style="font-style:italic;">n</span>th prime, <span class="texhtml mvar" style="font-style:italic;">p<sub>n</sub></span>, is
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle p_{n}=n\left(\log n+\log \log n-1+{\frac {\log \log n-2}{\log n}}+O\left({\frac {(\log \log n)^{2}}{(\log n)^{2}}}\right)\right).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<mo>=</mo>
<mi>n</mi>
<mrow>
<mo>(</mo>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>+</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>2</mn>
</mrow>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
</mrow>
</mfrac>
</mrow>
<mo>+</mo>
<mi>O</mi>
<mrow>
<mo>(</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mo stretchy="false">(</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
</mrow>
<mrow>
<mo stretchy="false">(</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
</mrow>
</mfrac>
</mrow>
<mo>)</mo>
</mrow>
</mrow>
<mo>)</mo>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle p_{n}=n\left(\log n+\log \log n-1+{\frac {\log \log n-2}{\log n}}+O\left({\frac {(\log \log n)^{2}}{(\log n)^{2}}}\right)\right).}</annotation>
</semantics>
</math></span><img src="./153eef9a1d35499f310be52f271a37006dbf1fb7.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; margin-left: -0.089ex; width:68.068ex; height:7.509ex;" alt="{\displaystyle p_{n}=n\left(\log n+\log \log n-1+{\frac {\log \log n-2}{\log n}}+O\left({\frac {(\log \log n)^{2}}{(\log n)^{2}}}\right)\right).}" loading="lazy"></span></dd></dl>
<p>Here are some inequalities for the <span class="texhtml mvar" style="font-style:italic;">n</span>th prime. The lower bound is due to Dusart (1999)<sup id="cite_ref-34" class="reference"><a href="#cite_note-34"><span class="cite-bracket">[</span>33<span class="cite-bracket">]</span></a></sup> and the upper bound to Rosser (1941).<sup id="cite_ref-35" class="reference"><a href="#cite_note-35"><span class="cite-bracket">[</span>34<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n(\log n+\log \log n-1)<p_{n}<n(\log n+\log \log n)\quad {\text{for }}n\geq 6.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mo stretchy="false">(</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>+</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mo>&lt;</mo>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<mo>&lt;</mo>
<mi>n</mi>
<mo stretchy="false">(</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>+</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext>for&nbsp;</mtext>
</mrow>
<mi>n</mi>
<mo>≥<!-- ≥ --></mo>
<mn>6.</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n(\log n+\log \log n-1)&lt;p_{n}&lt;n(\log n+\log \log n)\quad {\text{for }}n\geq 6.}</annotation>
</semantics>
</math></span><img src="./396f810308234bf1b5c825537cb1176b2abcb023.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:62.4ex; height:2.843ex;" alt="{\displaystyle n(\log n+\log \log n-1)<p_{n}<n(\log n+\log \log n)\quad {\text{for }}n\geq 6.}" loading="lazy"></span></dd></dl>
<p>The left inequality holds for <span class="texhtml"><i>n</i> ≥ 2</span> and the right inequality holds for <span class="texhtml"><i>n</i> ≥ 6</span>. A variant form sometimes seen substitutes <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \log n+\log \log n=\log(n\log n).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>+</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>=</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \log n+\log \log n=\log(n\log n).}</annotation>
</semantics>
</math></span><img src="./c27e6d741232fc9573cbedaf06d996b0fedae1e6.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:30.768ex; height:2.843ex;" alt="{\displaystyle \log n+\log \log n=\log(n\log n).}" loading="lazy"></span> An even simpler lower bound is<sup id="cite_ref-Rosser62_36-0" class="reference"><a href="#cite_note-Rosser62-36"><span class="cite-bracket">[</span>35<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n\log n<p_{n},}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>&lt;</mo>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n\log n&lt;p_{n},}</annotation>
</semantics>
</math></span><img src="./a282580718f4cfbfee14f79e3bad276a36d9c165.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:12.669ex; height:2.509ex;" alt="{\displaystyle n\log n<p_{n},}" loading="lazy"></span></dd></dl>
<p>which holds for all <span class="texhtml"><i>n</i> ≥ 1</span>, but the lower bound above is tighter for <span class="texhtml"><i>n</i> &gt; <i>e<sup>e</sup></i> ≈15.154</span>.
</p><p>In 2010 Dusart proved<sup id="cite_ref-Dusart2010_32-1" class="reference"><a href="#cite_note-Dusart2010-32"><span class="cite-bracket">[</span>31<span class="cite-bracket">]</span></a></sup> (Propositions 6.7 and 6.6) that
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n\left(\log n+\log \log n-1+{\frac {\log \log n-2.1}{\log n}}\right)\leq p_{n}\leq n\left(\log n+\log \log n-1+{\frac {\log \log n-2}{\log n}}\right),}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mrow>
<mo>(</mo>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>+</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>2.1</mn>
</mrow>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
</mrow>
</mfrac>
</mrow>
</mrow>
<mo>)</mo>
</mrow>
<mo>≤<!-- ≤ --></mo>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<mo>≤<!-- ≤ --></mo>
<mi>n</mi>
<mrow>
<mo>(</mo>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>+</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>2</mn>
</mrow>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
</mrow>
</mfrac>
</mrow>
</mrow>
<mo>)</mo>
</mrow>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n\left(\log n+\log \log n-1+{\frac {\log \log n-2.1}{\log n}}\right)\leq p_{n}\leq n\left(\log n+\log \log n-1+{\frac {\log \log n-2}{\log n}}\right),}</annotation>
</semantics>
</math></span><img src="./79b1435711c469c72fc77c70dcef047d2c340622.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.505ex; width:92.836ex; height:6.176ex;" alt="{\displaystyle n\left(\log n+\log \log n-1+{\frac {\log \log n-2.1}{\log n}}\right)\leq p_{n}\leq n\left(\log n+\log \log n-1+{\frac {\log \log n-2}{\log n}}\right),}" loading="lazy"></span></dd></dl>
<p>for <span class="texhtml"><i>n</i> ≥ 3</span> and <span class="texhtml"><i>n</i> ≥ 688383</span>, respectively.
</p><p>In 2024, Axler<sup id="cite_ref-37" class="reference"><a href="#cite_note-37"><span class="cite-bracket">[</span>36<span class="cite-bracket">]</span></a></sup> further tightened this (equations 1.12 and 1.13) using bounds of the form
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle f(n,g(w))=n\left(\log n+\log \log n-1+{\frac {\log \log n-2}{\log n}}-{\frac {g(\log \log n)}{2\log ^{2}n}}\right)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>f</mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo>,</mo>
<mi>g</mi>
<mo stretchy="false">(</mo>
<mi>w</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>n</mi>
<mrow>
<mo>(</mo>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>+</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>1</mn>
<mo>+</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mn>2</mn>
</mrow>
<mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
</mrow>
</mfrac>
</mrow>
<mo>−<!-- − --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mrow>
<mi>g</mi>
<mo stretchy="false">(</mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mrow>
<mrow>
<mn>2</mn>
<msup>
<mi>log</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
</mrow>
</mfrac>
</mrow>
</mrow>
<mo>)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle f(n,g(w))=n\left(\log n+\log \log n-1+{\frac {\log \log n-2}{\log n}}-{\frac {g(\log \log n)}{2\log ^{2}n}}\right)}</annotation>
</semantics>
</math></span><img src="./ad991566746a5470e6a419d034c2dafc479b145c.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:68.883ex; height:7.509ex;" alt="{\displaystyle f(n,g(w))=n\left(\log n+\log \log n-1+{\frac {\log \log n-2}{\log n}}-{\frac {g(\log \log n)}{2\log ^{2}n}}\right)}" loading="lazy"></span></dd></dl>
<p>proving that
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle f(n,w^{2}-6w+11.321)\leq p_{n}\leq f(n,w^{2}-6w)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>f</mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo>,</mo>
<msup>
<mi>w</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<mn>6</mn>
<mi>w</mi>
<mo>+</mo>
<mn>11.321</mn>
<mo stretchy="false">)</mo>
<mo>≤<!-- ≤ --></mo>
<msub>
<mi>p</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
</mrow>
</msub>
<mo>≤<!-- ≤ --></mo>
<mi>f</mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo>,</mo>
<msup>
<mi>w</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<mn>6</mn>
<mi>w</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle f(n,w^{2}-6w+11.321)\leq p_{n}\leq f(n,w^{2}-6w)}</annotation>
</semantics>
</math></span><img src="./4455ff030ce40cb499d6244f0c44f90e61394aa2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:45.688ex; height:3.176ex;" alt="{\displaystyle f(n,w^{2}-6w+11.321)\leq p_{n}\leq f(n,w^{2}-6w)}" loading="lazy"></span></dd></dl>
<p>for <span class="texhtml"><i>n</i> ≥ 2</span> and <span class="texhtml"><i>n</i> ≥ 3468</span>, respectively.
The lower bound may also be simplified to <span class="texhtml"><i>f</i>(<i>n</i>, <i>w</i><sup>2</sup>)</span> without altering its validity. The upper bound may be tightened to <span class="texhtml"><i>f</i>(<i>n</i>, <i>w</i><sup>2</sup> − 6<i>w</i> + 10.667)</span> if <span class="texhtml"><i>n</i> ≥ 46254381</span>.
</p><p>There are additional bounds of varying complexity.<sup id="cite_ref-38" class="reference"><a href="#cite_note-38"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-39" class="reference"><a href="#cite_note-39"><span class="cite-bracket">[</span>38<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-40" class="reference"><a href="#cite_note-40"><span class="cite-bracket">[</span>39<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="The_Riemann_hypothesis">The Riemann hypothesis</h2></div>
<p>The <a href="Riemann_hypothesis" title="Riemann hypothesis">Riemann hypothesis</a> implies a much tighter bound on the error in the estimate for <span class="texhtml"><i>π</i>(<i>x</i>)</span>, and hence to a more regular distribution of prime numbers,
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \pi (x)=\operatorname {li} (x)+O({\sqrt {x}}\log {x}).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>li</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mi>O</mi>
<mo stretchy="false">(</mo>
<mrow class="MJX-TeXAtom-ORD">
<msqrt>
<mi>x</mi>
</msqrt>
</mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>x</mi>
</mrow>
<mo stretchy="false">)</mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \pi (x)=\operatorname {li} (x)+O({\sqrt {x}}\log {x}).}</annotation>
</semantics>
</math></span><img src="./d3759e9342f7faedea3c56308dea788ea80d3f73.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.005ex; width:27.413ex; height:3.009ex;" alt="{\displaystyle \pi (x)=\operatorname {li} (x)+O({\sqrt {x}}\log {x}).}" loading="lazy"></span></dd></dl>
<p>Specifically,<sup id="cite_ref-41" class="reference"><a href="#cite_note-41"><span class="cite-bracket">[</span>40<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle |\pi (x)-\operatorname {li} (x)|<{\frac {\sqrt {x}}{8\pi }}\,\log {x},\quad {\text{for all }}x\geq 2657.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">|</mo>
</mrow>
<mi>π<!-- π --></mi>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>−<!-- − --></mo>
<mi>li</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">|</mo>
</mrow>
<mo>&lt;</mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<msqrt>
<mi>x</mi>
</msqrt>
<mrow>
<mn>8</mn>
<mi>π<!-- π --></mi>
</mrow>
</mfrac>
</mrow>
<mspace width="thinmathspace"></mspace>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>x</mi>
</mrow>
<mo>,</mo>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext>for all&nbsp;</mtext>
</mrow>
<mi>x</mi>
<mo>≥<!-- ≥ --></mo>
<mn>2657.</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle |\pi (x)-\operatorname {li} (x)|&lt;{\frac {\sqrt {x}}{8\pi }}\,\log {x},\quad {\text{for all }}x\geq 2657.}</annotation>
</semantics>
</math></span><img src="./13655191a0d5b1e7e78e7cfda6d68e6362f7356b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.838ex; width:45.185ex; height:5.843ex;" alt="{\displaystyle |\pi (x)-\operatorname {li} (x)|<{\frac {\sqrt {x}}{8\pi }}\,\log {x},\quad {\text{for all }}x\geq 2657.}" loading="lazy"></span></dd></dl>
<p><a href="#CITEREFDudek2015">Dudek (2015)</a> proved that the Riemann hypothesis implies that for all <span class="texhtml"><i>x</i> ≥ 2</span> there is a prime <span class="texhtml mvar" style="font-style:italic;">p</span> satisfying
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x-{\frac {4}{\pi }}{\sqrt {x}}\log x<p\leq x.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>x</mi>
<mo>−<!-- − --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mfrac>
<mn>4</mn>
<mi>π<!-- π --></mi>
</mfrac>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<msqrt>
<mi>x</mi>
</msqrt>
</mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>x</mi>
<mo>&lt;</mo>
<mi>p</mi>
<mo>≤<!-- ≤ --></mo>
<mi>x</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle x-{\frac {4}{\pi }}{\sqrt {x}}\log x&lt;p\leq x.}</annotation>
</semantics>
</math></span><img src="./584244aaeca942988ad08219c8b2807f63b0b7b1.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.838ex; width:24.022ex; height:5.176ex;" alt="{\displaystyle x-{\frac {4}{\pi }}{\sqrt {x}}\log x<p\leq x.}" loading="lazy"></span></dd></dl>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="Bertrand's_postulate" title="Bertrand's postulate">Bertrand's postulate</a></li>
<li><a href="Oppermann's_conjecture" title="Oppermann's conjecture">Oppermann's conjecture</a></li>
<li><a href="Ramanujan_prime" title="Ramanujan prime">Ramanujan prime</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-Bach-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-Bach_1-0">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite id="CITEREFBachShallit,_Jeffrey1996" class="citation book cs1">Bach, Eric; Shallit, Jeffrey (1996). <i>Algorithmic Number Theory</i>. MIT Press. volume 1 page 234 section 8.8. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-262-02405-5</bdi>.</cite></span>
</li>
<li id="cite_note-mathworld_pcf-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-mathworld_pcf_2-0">^</a></b></span> <span class="reference-text"><span class="citation mathworld" id="Reference-Mathworld-Prime_Counting_Function"><cite id="CITEREFWeisstein" class="citation web cs1"><a href="Eric_W._Weisstein" title="Eric W. Weisstein">Weisstein, Eric W.</a> <a rel="nofollow" class="external text" href="https://mathworld.wolfram.com/PrimeCountingFunction.html">"Prime Counting Function"</a>. <i><a href="MathWorld" title="MathWorld">MathWorld</a></i>.</cite></span></span>
</li>
<li id="cite_note-Caldwell-3"><span class="mw-cite-backlink">^ <a href="#cite_ref-Caldwell_3-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Caldwell_3-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20121015002415/http://primes.utm.edu/howmany.shtml">"How many primes are there?"</a>. Chris K. Caldwell. Archived from <a rel="nofollow" class="external text" href="http://primes.utm.edu/howmany.shtml">the original</a> on 2012-10-15<span class="reference-accessdate">. Retrieved <span class="nowrap">2008-12-02</span></span>.</cite></span>
</li>
<li id="cite_note-Dickson-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-Dickson_4-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFDickson2005" class="citation book cs1"><a href="L._E._Dickson" class="mw-redirect" title="L. E. Dickson">Dickson, Leonard Eugene</a> (2005). <i>History of the Theory of Numbers, Vol. I: Divisibility and Primality</i>. Dover Publications. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-486-44232-2</bdi>.</cite></span>
</li>
<li id="cite_note-Ireland-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-Ireland_5-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFIrelandRosen,_Michael1998" class="citation book cs1">Ireland, Kenneth; Rosen, Michael (1998). <i>A Classical Introduction to Modern Number Theory</i> (Second&nbsp;ed.). Springer. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-387-97329-X</bdi>.</cite></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text">See also Theorem 23 of <cite id="CITEREFA._E._Ingham2000" class="citation book cs1"><a href="Albert_Ingham" title="Albert Ingham">A. E. Ingham</a> (2000). <i>The Distribution of Prime Numbers</i>. Cambridge University Press. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-521-39789-8</bdi>.</cite></span>
</li>
<li id="cite_note-Ford-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-Ford_7-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFKevin_Ford2002" class="citation journal cs1">Kevin Ford (November 2002). <a rel="nofollow" class="external text" href="https://faculty.math.illinois.edu/~ford/wwwpapers/zetabd.pdf">"Vinogradov's Integral and Bounds for the Riemann Zeta Function"</a> <span class="cs1-format">(PDF)</span>. <i>Proc. London Math. Soc</i>. <b>85</b> (3): <span class="nowrap">565–</span>633. <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/1910.08209">1910.08209</a></span>. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1112%2FS0024611502013655">10.1112/S0024611502013655</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:121144007">121144007</a>.</cite></span>
</li>
<li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"><cite id="CITEREFMossinghoffTrudgian2015" class="citation journal cs1">Mossinghoff, Michael J.; <a href="Timothy_Trudgian" title="Timothy Trudgian">Trudgian, Timothy S.</a> (2015). "Nonnegative trigonometric polynomials and a zero-free region for the Riemann zeta-function". <i>J. Number Theory</i>. <b>157</b>: <span class="nowrap">329–</span>349. <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/1410.3926">1410.3926</a></span>. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1016%2FJ.JNT.2015.05.010">10.1016/J.JNT.2015.05.010</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:117968965">117968965</a>.</cite></span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"><cite id="CITEREFHutama2017" class="citation web cs1">Hutama, Daniel (2017). <a rel="nofollow" class="external text" href="http://ism.uqam.ca/~ism/pdf/Hutama-scientific%20report.pdf">"Implementation of Riemann's Explicit Formula for Rational and Gaussian Primes in Sage"</a> <span class="cs1-format">(PDF)</span>. <i>Institut des sciences mathématiques</i>.</cite></span>
</li>
<li id="cite_note-RieselGohl-10"><span class="mw-cite-backlink">^ <a href="#cite_ref-RieselGohl_10-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-RieselGohl_10-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFRieselGöhl1970" class="citation journal cs1"><a href="Hans_Riesel" title="Hans Riesel">Riesel, Hans</a>; Göhl, Gunnar (1970). <a rel="nofollow" class="external text" href="https://www.ams.org/journals/mcom/1970-24-112/S0025-5718-1970-0277489-3/S0025-5718-1970-0277489-3.pdf">"Some calculations related to Riemann's prime number formula"</a> <span class="cs1-format">(PDF)</span>. <i><a href="Mathematics_of_Computation" title="Mathematics of Computation">Mathematics of Computation</a></i>. <b>24</b> (112). American Mathematical Society: <span class="nowrap">969–</span>983. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.2307%2F2004630">10.2307/2004630</a>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0025-5718">0025-5718</a>. <a href="JSTOR_(identifier)" class="mw-redirect" title="JSTOR (identifier)">JSTOR</a>&nbsp;<a rel="nofollow" class="external text" href="https://www.jstor.org/stable/2004630">2004630</a>. <a href="MR_(identifier)" class="mw-redirect" title="MR (identifier)">MR</a>&nbsp;<a rel="nofollow" class="external text" href="https://mathscinet.ams.org/mathscinet-getitem?mr=0277489">0277489</a>.</cite></span>
</li>
<li id="cite_note-Silva-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-Silva_11-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://sweet.ua.pt/tos/primes.html">"Tables of values of <span class="texhtml"><i>π</i>(<i>x</i>)</span> and of <span class="texhtml"><i>π</i><sub>2</sub>(<i>x</i>)</span>"</a>. Tomás Oliveira e Silva<span class="reference-accessdate">. Retrieved <span class="nowrap">2024-03-31</span></span>.</cite></span>
</li>
<li id="cite_note-Gourdon-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-Gourdon_12-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://numbers.computation.free.fr/Constants/Primes/pixtable.html">"A table of values of <span class="texhtml"><i>π</i>(<i>x</i>)</span>"</a>. Xavier Gourdon, Pascal Sebah, Patrick Demichel<span class="reference-accessdate">. Retrieved <span class="nowrap">2008-09-14</span></span>.</cite></span>
</li>
<li id="cite_note-Franke-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-Franke_13-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFFranke2010" class="citation web cs1"><a href="Jens_Franke" title="Jens Franke">Franke, Jens</a> (2010-07-29). <a rel="nofollow" class="external text" href="https://t5k.org/notes/pi(10to24).html">"Conditional Calculation of π(10<sup>24</sup>)"</a>. Chris K. Caldwell<span class="reference-accessdate">. Retrieved <span class="nowrap">2024-03-30</span></span>.</cite></span>
</li>
<li id="cite_note-Platt2012-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-Platt2012_14-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFPlatt2015" class="citation journal cs1">Platt, David J. (May 2015) [March 2012]. <a rel="nofollow" class="external text" href="https://doi.org/10.1090%2FS0025-5718-2014-02884-6">"Computing <span class="texhtml"><i>π</i>(<i>x</i>)</span> Analytically"</a>. <i>Mathematics of Computation</i>. <b>84</b> (293): <span class="nowrap">1521–</span>1535. <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/1203.5712">1203.5712</a></span>. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1090%2FS0025-5718-2014-02884-6">10.1090/S0025-5718-2014-02884-6</a></span>.</cite></span>
</li>
<li id="cite_note-Buethe-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-Buethe_15-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.math.uni-bonn.de/people/jbuethe/topics/AnalyticPiX.html">"Analytic Computation of the prime-counting Function"</a>. J. Buethe. 27 May 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">2015-09-01</span></span>.</cite> Includes 600,000 value of <span class="texhtml"><i>π</i>(<i>x</i>)</span> for <span class="texhtml">10<sup>14</sup> ≤ <i>x</i> ≤ 1.6×10<sup>18</sup></span></span>
</li>
<li id="cite_note-Staple-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-Staple_16-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStaple2015" class="citation thesis cs1">Staple, Douglas (19 August 2015). <a rel="nofollow" class="external text" href="http://dalspace.library.dal.ca/handle/10222/60524"><i>The combinatorial algorithm for computing π(x)</i></a> (Thesis). Dalhousie University<span class="reference-accessdate">. Retrieved <span class="nowrap">2015-09-01</span></span>.</cite></span>
</li>
<li id="cite_note-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-17">^</a></b></span> <span class="reference-text"><cite id="CITEREFWalisch2015" class="citation web cs1">Walisch, Kim (September 6, 2015). <a rel="nofollow" class="external text" href="http://www.mersenneforum.org/showthread.php?t=20473">"New confirmed π(10<sup>27</sup>) prime counting function record"</a>. <i>Mersenne Forum</i>.</cite></span>
</li>
<li id="cite_note-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-18">^</a></b></span> <span class="reference-text"><cite id="CITEREFBaugh2020" class="citation web cs1">Baugh, David (August 30, 2020). <a rel="nofollow" class="external text" href="https://www.mersenneforum.org/showpost.php?p=555434&amp;postcount=28">"New prime counting function record, pi(10^28)"</a>. <i>Mersenne Forum</i>.</cite></span>
</li>
<li id="cite_note-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-19">^</a></b></span> <span class="reference-text"><cite id="CITEREFWalisch2022" class="citation web cs1">Walisch, Kim (March 4, 2022). <a rel="nofollow" class="external text" href="https://www.mersenneforum.org/showpost.php?p=601061&amp;postcount=38">"New prime counting function record: PrimePi(10^29)"</a>. <i>Mersenne Forum</i>.</cite></span>
</li>
<li id="cite_note-lehmer-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-lehmer_20-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFLehmer1958" class="citation journal cs1"><a href="D._H._Lehmer" title="D. H. Lehmer">Lehmer, Derrick Henry</a> (1 April 1958). <a rel="nofollow" class="external text" href="https://projecteuclid.org/download/pdf_1/euclid.ijm/1255455259">"On the exact number of primes less than a given limit"</a>. <i>Illinois J. Math</i>. <b>3</b> (3): <span class="nowrap">381–</span>388<span class="reference-accessdate">. Retrieved <span class="nowrap">1 February</span> 2017</span>.</cite></span>
</li>
<li id="cite_note-pix_comp-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-pix_comp_21-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFDeléglise,_MarcRivat,_Joel1996" class="citation journal cs1">Deléglise, Marc; Rivat, Joel (January 1996). <a rel="nofollow" class="external text" href="https://www.ams.org/mcom/1996-65-213/S0025-5718-96-00674-6/S0025-5718-96-00674-6.pdf">"Computing <span class="texhtml"><i>π</i>(<i>x</i>)</span>: The Meissel, Lehmer, Lagarias, Miller, Odlyzko method"</a> <span class="cs1-format">(PDF)</span>. <i>Mathematics of Computation</i>. <b>65</b> (213): <span class="nowrap">235–</span>245. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1090%2FS0025-5718-96-00674-6">10.1090/S0025-5718-96-00674-6</a></span>.</cite></span>
</li>
<li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><cite id="CITEREFApostol2010" class="citation book cs1"><a href="Tom_M._Apostol" title="Tom M. Apostol">Apostol, Tom M.</a> (2010). <i>Introduction to Analytic Number Theory</i>. Springer. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1441928054</bdi>.</cite></span>
</li>
<li id="cite_note-Titchmarsh-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-Titchmarsh_23-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTitchmarsh1960" class="citation book cs1">Titchmarsh, E.C. (1960). <i>The Theory of Functions, 2nd ed</i>. Oxford University Press.</cite></span>
</li>
<li id="cite_note-mathworld_r-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-mathworld_r_24-0">^</a></b></span> <span class="reference-text"><span class="citation mathworld" id="Reference-Mathworld-Riemann_Prime_Counting_Function"><cite id="CITEREFWeisstein" class="citation web cs1"><a href="Eric_W._Weisstein" title="Eric W. Weisstein">Weisstein, Eric W.</a> <a rel="nofollow" class="external text" href="https://mathworld.wolfram.com/RiemannPrimeCountingFunction.html">"Riemann Prime Counting Function"</a>. <i><a href="MathWorld" title="MathWorld">MathWorld</a></i>.</cite></span></span>
</li>
<li id="cite_note-Riesel94-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-Riesel94_25-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFRiesel1994" class="citation book cs1"><a href="Hans_Riesel" title="Hans Riesel">Riesel, Hans</a> (1994). <i>Prime Numbers and Computer Methods for Factorization</i>. Progress in Mathematics. Vol.&nbsp;126 (2nd&nbsp;ed.). Birkhäuser. pp.&nbsp;<span class="nowrap">50–</span>51. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>0-8176-3743-5</bdi>.</cite></span>
</li>
<li id="cite_note-mathworld_gram-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-mathworld_gram_26-0">^</a></b></span> <span class="reference-text"><span class="citation mathworld" id="Reference-Mathworld-Gram_Series"><cite id="CITEREFWeisstein" class="citation web cs1"><a href="Eric_W._Weisstein" title="Eric W. Weisstein">Weisstein, Eric W.</a> <a rel="nofollow" class="external text" href="https://mathworld.wolfram.com/GramSeries.html">"Gram Series"</a>. <i><a href="MathWorld" title="MathWorld">MathWorld</a></i>.</cite></span></span>
</li>
<li id="cite_note-27"><span class="mw-cite-backlink"><b><a href="#cite_ref-27">^</a></b></span> <span class="reference-text"><cite id="CITEREFBornemann" class="citation web cs1">Bornemann, Folkmar. <a rel="nofollow" class="external text" href="https://www-m3.ma.tum.de/bornemann/RiemannRZero.pdf">"Solution of a Problem Posed by Jörg Waldvogel"</a> <span class="cs1-format">(PDF)</span>.</cite></span>
</li>
<li id="cite_note-Watkins-29"><span class="mw-cite-backlink"><b><a href="#cite_ref-Watkins_29-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.secamlocal.ex.ac.uk/people/staff/mrwatkin/zeta/encoding1.htm">"The encoding of the prime distribution by the zeta zeros"</a>. Matthew Watkins<span class="reference-accessdate">. Retrieved <span class="nowrap">2008-09-14</span></span>.</cite></span>
</li>
<li id="cite_note-30"><span class="mw-cite-backlink"><b><a href="#cite_ref-30">^</a></b></span> <span class="reference-text"><cite id="CITEREFBerndt2012" class="citation book cs1">Berndt, Bruce C. (2012-12-06). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=QoMHCAAAQBAJ"><i>Ramanujan's Notebooks, Part IV</i></a>. Springer Science &amp; Business Media. pp.&nbsp;<span class="nowrap">112–</span>113. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>9781461269328</bdi>.</cite></span>
</li>
<li id="cite_note-Rosser1962-31"><span class="mw-cite-backlink"><b><a href="#cite_ref-Rosser1962_31-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFRosserSchoenfeld1962" class="citation journal cs1"><a href="J._Barkley_Rosser" title="J. Barkley Rosser">Rosser, J. Barkley</a>; Schoenfeld, Lowell (1962). <a rel="nofollow" class="external text" href="https://projecteuclid.org/euclid.ijm/1255631807">"Approximate formulas for some functions of prime numbers"</a>. <i><a href="Illinois_J._Math." class="mw-redirect" title="Illinois J. Math.">Illinois J. Math.</a></i> <b>6</b>: <span class="nowrap">64–</span>94. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1215%2Fijm%2F1255631807">10.1215/ijm/1255631807</a></span>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0019-2082">0019-2082</a>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:0122.05001">0122.05001</a>.</cite></span>
</li>
<li id="cite_note-Dusart2010-32"><span class="mw-cite-backlink">^ <a href="#cite_ref-Dusart2010_32-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Dusart2010_32-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFDusart2010" class="citation arxiv cs1"><a href="Pierre_Dusart" title="Pierre Dusart">Dusart, Pierre</a> (2 Feb 2010). "Estimates of Some Functions Over Primes without R.H.". <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/1002.0442v1">1002.0442v1</a></span> [<a rel="nofollow" class="external text" href="https://arxiv.org/archive/math.NT">math.NT</a>].</cite></span>
</li>
<li id="cite_note-33"><span class="mw-cite-backlink"><b><a href="#cite_ref-33">^</a></b></span> <span class="reference-text"><cite id="CITEREFDusart2018" class="citation journal cs1"><a href="Pierre_Dusart" title="Pierre Dusart">Dusart, Pierre</a> (January 2018). "Explicit estimates of some functions over primes". <i>Ramanujan Journal</i>. <b>45</b> (1): <span class="nowrap">225–</span>234. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2Fs11139-016-9839-4">10.1007/s11139-016-9839-4</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:125120533">125120533</a>.</cite></span>
</li>
<li id="cite_note-34"><span class="mw-cite-backlink"><b><a href="#cite_ref-34">^</a></b></span> <span class="reference-text"><cite id="CITEREFDusart1999" class="citation journal cs1"><a href="Pierre_Dusart" title="Pierre Dusart">Dusart, Pierre</a> (January 1999). <a rel="nofollow" class="external text" href="https://www.ams.org/mcom/1999-68-225/S0025-5718-99-01037-6/S0025-5718-99-01037-6.pdf">"The <i>k<sup>th</sup></i> prime is greater than <i>k</i>(ln <i>k</i> + ln ln <i>k</i> − 1) for <i>k</i> ≥ 2"</a> <span class="cs1-format">(PDF)</span>. <i>Mathematics of Computation</i>. <b>68</b> (225): <span class="nowrap">411–</span>415. <a href="Bibcode_(identifier)" class="mw-redirect" title="Bibcode (identifier)">Bibcode</a>:<a rel="nofollow" class="external text" href="https://ui.adsabs.harvard.edu/abs/1999MaCom..68..411D">1999MaCom..68..411D</a>. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1090%2FS0025-5718-99-01037-6">10.1090/S0025-5718-99-01037-6</a></span>.</cite></span>
</li>
<li id="cite_note-35"><span class="mw-cite-backlink"><b><a href="#cite_ref-35">^</a></b></span> <span class="reference-text"><cite id="CITEREFRosser1941" class="citation journal cs1"><a href="J._Barkley_Rosser" title="J. Barkley Rosser">Rosser, Barkley</a> (January 1941). "Explicit bounds for some functions of prime numbers". <i>American Journal of Mathematics</i>. <b>63</b> (1): <span class="nowrap">211–</span>232. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.2307%2F2371291">10.2307/2371291</a>. <a href="JSTOR_(identifier)" class="mw-redirect" title="JSTOR (identifier)">JSTOR</a>&nbsp;<a rel="nofollow" class="external text" href="https://www.jstor.org/stable/2371291">2371291</a>.</cite></span>
</li>
<li id="cite_note-Rosser62-36"><span class="mw-cite-backlink"><b><a href="#cite_ref-Rosser62_36-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFRosserSchoenfeld1962" class="citation journal cs1"><a href="J._Barkley_Rosser" title="J. Barkley Rosser">Rosser, J. Barkley</a>; <a href="Lowell_Schoenfeld" title="Lowell Schoenfeld">Schoenfeld, Lowell</a> (March 1962). "Approximate formulas for some functions of prime numbers". <i>Illinois Journal of Mathematics</i>. <b>6</b> (1): <span class="nowrap">64–</span>94. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1215%2Fijm%2F1255631807">10.1215/ijm/1255631807</a>.</cite></span>
</li>
<li id="cite_note-37"><span class="mw-cite-backlink"><b><a href="#cite_ref-37">^</a></b></span> <span class="reference-text"><cite id="CITEREFAxler2019" class="citation journal cs1">Axler, Christian (2019) [23 Mar 2017]. <a rel="nofollow" class="external text" href="https://cs.uwaterloo.ca/journals/JIS/VOL22/Axler/axler17.html">"New estimates for the <i>n</i>th prime number"</a>. <i>Journal of Integer Sequences</i>. <b>19</b> (4) 2. <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/1706.03651">1706.03651</a></span>.</cite></span>
</li>
<li id="cite_note-38"><span class="mw-cite-backlink"><b><a href="#cite_ref-38">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://math.stackexchange.com/questions/1270814/bounds-for-n-th-prime">"Bounds for <i>n</i>-th prime"</a>. <i>Mathematics StackExchange</i>. 31 December 2015.</cite></span>
</li>
<li id="cite_note-39"><span class="mw-cite-backlink"><b><a href="#cite_ref-39">^</a></b></span> <span class="reference-text"><cite id="CITEREFAxler2018" class="citation journal cs1">Axler, Christian (2018) [23 Mar 2017]. <a rel="nofollow" class="external text" href="https://math.colgate.edu/~integers/s52/s52.pdf">"New Estimates for Some Functions Defined Over Primes"</a> <span class="cs1-format">(PDF)</span>. <i>Integers</i>. <b>18</b> A52. <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/1703.08032">1703.08032</a></span>. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.5281%2Fzenodo.10677755">10.5281/zenodo.10677755</a></span>.</cite></span>
</li>
<li id="cite_note-40"><span class="mw-cite-backlink"><b><a href="#cite_ref-40">^</a></b></span> <span class="reference-text"><cite id="CITEREFAxler2024" class="citation journal cs1">Axler, Christian (2024) [11 Mar 2022]. <a rel="nofollow" class="external text" href="https://math.colgate.edu/~integers/y34/y34.pdf">"Effective Estimates for Some Functions Defined over Primes"</a> <span class="cs1-format">(PDF)</span>. <i>Integers</i>. <b>24</b> A34. <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/2203.05917">2203.05917</a></span>. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.5281%2Fzenodo.10677755">10.5281/zenodo.10677755</a></span>.</cite></span>
</li>
<li id="cite_note-41"><span class="mw-cite-backlink"><b><a href="#cite_ref-41">^</a></b></span> <span class="reference-text"><cite id="CITEREFSchoenfeld1976" class="citation journal cs1"><a href="Lowell_Schoenfeld" title="Lowell Schoenfeld">Schoenfeld, Lowell</a> (1976). "Sharper bounds for the Chebyshev functions <i>θ</i>(<i>x</i>) and <i>ψ</i>(<i>x</i>). II". <i><a href="Mathematics_of_Computation" title="Mathematics of Computation">Mathematics of Computation</a></i>. <b>30</b> (134). American Mathematical Society: <span class="nowrap">337–</span>360. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.2307%2F2005976">10.2307/2005976</a>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0025-5718">0025-5718</a>. <a href="JSTOR_(identifier)" class="mw-redirect" title="JSTOR (identifier)">JSTOR</a>&nbsp;<a rel="nofollow" class="external text" href="https://www.jstor.org/stable/2005976">2005976</a>. <a href="MR_(identifier)" class="mw-redirect" title="MR (identifier)">MR</a>&nbsp;<a rel="nofollow" class="external text" href="https://mathscinet.ams.org/mathscinet-getitem?mr=0457374">0457374</a>.</cite></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading3"><h3 id="Notes">Notes</h3></div>
<div class="reflist">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-28"><span class="mw-cite-backlink"><b><a href="#cite_ref-28">^</a></b></span> <span class="reference-text"><a href="Hugh_Lowell_Montgomery" title="Hugh Lowell Montgomery">Montgomery</a> showed that (assuming the Riemann hypothesis) at least two thirds of all zeros are simple.</span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<ul><li>Chris Caldwell, <a rel="nofollow" class="external text" href="http://primes.utm.edu/nthprime/"><i>The Nth Prime Page</i></a> at The <a href="Prime_Pages" class="mw-redirect" title="Prime Pages">Prime Pages</a>.</li>
<li>Tomás Oliveira e Silva, <a rel="nofollow" class="external text" href="http://sweet.ua.pt/tos/primes.html">Tables of prime-counting functions</a>.</li>
<li><cite id="CITEREFDudek2015" class="citation cs2">Dudek, Adrian W. (2015), "On the Riemann hypothesis and the difference between primes", <i>International Journal of Number Theory</i>, <b>11</b> (3): <span class="nowrap">771–</span>778, <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/1402.6417">1402.6417</a></span>, <a href="Bibcode_(identifier)" class="mw-redirect" title="Bibcode (identifier)">Bibcode</a>:<a rel="nofollow" class="external text" href="https://ui.adsabs.harvard.edu/abs/2014arXiv1402.6417D">2014arXiv1402.6417D</a>, <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1142%2FS1793042115500426">10.1142/S1793042115500426</a>, <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/1793-0421">1793-0421</a>, <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:119321107">119321107</a></cite></li></ul></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-08-02" href="https://en.wikipedia.org/wiki/?title=Prime-counting_function&amp;oldid=1303866339">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>